Cache accesses to VRAM (I_Flip 3.4x)

Really makes you wonder how many hours are really needed to get things
to line up properly
This commit is contained in:
Lephenixnoir 2021-09-17 21:22:13 +02:00
parent ac6f730bed
commit 624df2883a
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
3 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ build-cg/
build-sdl2/
wad/
wad-edited/
notes/

View File

@ -17,7 +17,7 @@
// $Log:$
//
// DESCRIPTION:
// DOOM graphics stuff for Nspire
// DOOM graphics stuff for fx-CG 50
//
//-----------------------------------------------------------------------------

View File

@ -74,7 +74,9 @@ extern int CGD_TrustUnalignedLumps;
use the secondary VRAM as heap. We swap because using the VRAM as heap would
cause problems with error screens (stepping through errors would crash). */
#ifdef CGDOOM_DIRECT_R61524
# define CGDOOM_SCREENS_BASE ((void *)GetVRAMAddress())
# define CGDOOM_SCREENS_BASE ((void *)( \
((uint32_t)GetVRAMAddress() & 0x1fffffff) | 0x80000000 \
))
#else
# define CGDOOM_SCREENS_BASE SaveVRAMBuffer
#endif