PDA

View Full Version : SDL 1.2.9 For devkitPro r19



wraggster
June 18th, 2006, 03:05
GPF posted this news/release:

ok updated my sourcecode on site
http://gpf.dcemu.co.uk/ndsSDL.shtml

added doublebuffering support and fixed some errors that prevent it working with r19 using the new arm-eabi-gcc.

unfortunetly now doublebuffering is on all the time and it uses 1mb of system memory.

in video/nds/SDL_ndsvideo.c NDS_SetVideoMode function this enabled the doublebuffering
change to
to disable doublebuffering and recompile the lib.

if someone has a fix to this let me know. I thought that the NDS_AllocHWSurface(...) would be called and i used to have the malloc defined in there but for a couple of SDL ports they were never calling that function so i moved it into the NDS_SetVideoMode function.

Also a lot of work need to be done to allocated VRAM better, right now 8bit video uses a mode6 1024X512 background
and 16bit video uses mode5 515X512 background. So if you using a smaller screen it shouldnt need to allocate so much VRAM and the doublebuffering memory could be moved into VRAM instead of main ram.

More info --> http://gpf.dcemu.co.uk/