forked from smunaut/doom_riscv
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
4 changed files
with
58 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters