You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMPLEMENT COMBINE SCREENS AND CUT WIPE SCREEN EFFECT
Reduce memory use for doom
Control flag "DISABLE_WIPES" and "COMBINE_SCREENS" are define in doomdef.h.
DISABLE_WIPES will cut wipe screen effect, COMBINE_SCREENS will discard screen buffer #1、#2、#3.
V_Init() function make four screen buffers pointer to same address(address of screen buffer #0) In v_video.c.
DOOMHEAP are replaced by static array and it size are controled by DOOM_HEAP_SIZE, both are in i_system.c.
Screen buffers are replaced by static array and I_AllocLow will return screen buffers directly in i_system.c.
If cut wipe screen effect, in f_wipe.c only wipe_StartScreen()、wipe_EndScreen()、wipe_ScreenWipe() will remain,
wipe_ScreenWipe() only copy data from screen buffer #3 to screen buffer #0 directly.
0 commit comments