# _I_basetime
_I_basetimeTracks the mutable i basetime value used by the i system subsystem.
src/i_system.mlSupplies portable timing, sleep, shutdown, fatal-error, low-memory allocation, and base command services to the engine.
d_event.ml → src/d_event.mld_net.ml → src/d_net.mld_ticcmd.ml → src/d_ticcmd.mldoomdef.ml → src/doomdef.mlg_game.ml → src/g_game.mli_sound.ml → src/i_sound.mli_system.ml → src/i_system.mli_video.ml → src/i_video.mlm_misc.ml → src/m_misc.mlmp_platform.ml → src/mp_platform.mlstd/math.ml → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/math.ml external dependencystd/time.ml → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/time.ml external dependency_I_basetimeTracks the mutable i basetime value used by the i system subsystem.
_I_emptycmdHolds the optional i emptycmd resource used by the i system subsystem.
inline function _I_ExitProcess(code)Normalizes a non-integer exit status to failure and terminates through Win32.
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | Code value supplied to `_I_ExitProcess`. |
inline function _I_GetTickCount()Isolates the Win32 millisecond clock behind the engine's internal timing wrapper.
inline function _I_ShowFatalErrorBox(text)Shows a fatal error message in a GUI dialog for windows-subsystem builds.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to process. |
inline function _I_Sleep(ms)Suspends the current thread for a non-negative duration through the platform-neutral standard time API.
| Parameter | Type | Default | Description |
|---|---|---|---|
ms | dynamic | — | Ms value supplied to `_I_Sleep`. |
inline function _I_StrContains(haystack, needle)Checks whether one string contains another.
| Parameter | Type | Default | Description |
|---|---|---|---|
haystack | dynamic | — | Haystack value supplied to `_I_StrContains`. |
needle | dynamic | — | Needle value supplied to `_I_StrContains`. |
inline function _I_ToLowerAscii(s)Converts a string to lowercase ASCII for robust message classification.
| Parameter | Type | Default | Description |
|---|---|---|---|
s | dynamic | — | S value supplied to `_I_ToLowerAscii`. |
inline function _IS_IDiv(a, b)Returns a signed quotient truncated toward zero, or zero for invalid operands and a zero divisor in `_IS_IDiv`
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | First input operand. |
b | dynamic | — | Second input operand. |
const _ISYS_MB_ICONERROR = 16Defines isys mb iconerror for the i system subsystem.
const _ISYS_MB_OK = 0Defines isys mb ok for the i system subsystem.
extern function ExitProcess(code as int) from "kernel32.dll" returns intTerminates the process immediately with the supplied operating-system exit code.
| Parameter | Type | Default | Description |
|---|---|---|---|
code | int | — | `int` value supplied as code to `ExitProcess`. |
Returns: Result returned by the native `ExitProcess` binding as `int`.
extern function GetTickCount() from "kernel32.dll" returns u32Returns Win32's millisecond count since system startup for Doom tic timing.
Returns: Win32's millisecond count since system startup for Doom tic timing.
function I_AllocLow(length)Allocates a zeroed byte buffer for legacy callers that expect low-memory storage.
| Parameter | Type | Default | Description |
|---|---|---|---|
length | dynamic | — | Number of bytes or elements in the associated value. |
function I_BaseTiccmd()Returns a reusable zeroed tic-command record that platform input code may populate for the current game tic.
function I_BeginRead()Preserves the legacy disk-read activity hook; this backend requires no begin notification.
function I_EndRead()Preserves the legacy disk-read activity hook; this backend requires no end notification.
function I_Error(msg)Performs one-shot fatal shutdown, prints the diagnostic, releases subsystems, and terminates with a nonzero exit code.
| Parameter | Type | Default | Description |
|---|---|---|---|
msg | dynamic | — | Msg value supplied to `I_Error`. |
function I_GetHeapSize()Converts the configured zone-heap size from mebibytes to bytes.
function I_GetTime()Converts elapsed Win32 milliseconds since the first call into whole 35 Hz game tics.
function I_GetTimeFrac()Returns the clamped fractional progress through the current 35 Hz tic for uncapped interpolation.
function I_Init()Brings up the platform audio backend after core engine globals are available.
function I_Quit()Leaves the netgame, closes platform, audio, and graphics services, saves defaults, then exits successfully.
function I_Tactile(on, off, total)Accepts legacy force-feedback parameters; this backend deliberately performs no tactile output.
| Parameter | Type | Default | Description |
|---|---|---|---|
on | dynamic | — | On value supplied to `I_Tactile`. |
off | dynamic | — | Zero-based byte or element offset. |
total | dynamic | — | Total value supplied to `I_Tactile`. |
function I_WaitVBL(count)Sleeps for the requested number of 70 Hz vertical-blank intervals using millisecond platform timing.
| Parameter | Type | Default | Description |
|---|---|---|---|
count | dynamic | — | Number of elements or iterations to process. |
function I_ZoneBase(sizeOut)Allocates the requested zone heap, reports its actual size through the reference argument, and retains the buffer for engine-wide lifetime.
| Parameter | Type | Default | Description |
|---|---|---|---|
sizeOut | dynamic | — | Size out value supplied to `I_ZoneBase`. |
mb_usedTracks the mutable mb used value used by the i system subsystem.