Commit Graph

5 Commits

Author SHA1 Message Date
Antonio Niño Díaz
6fde18d712 library: examples: Use stdint.h types 2023-11-17 01:00:40 +01:00
Antonio Niño Díaz
43a882e98f examples: Start adapting examples for BlocksDS
iprintf() is only present in newlib, not picolibc. It is a non-standard
function, so avoid using it.
2023-04-01 14:39:58 +01:00
Antonio Niño Díaz
1acfca1a24 examples: Wait for VBL in the right place
This change is a bit pedantic, but it makes the ROMs run better in
DeSmuMe.

Some examples (particularly the dual 3D examples) used to flicker during
one or two seconds right after starting. In dual 3D examples the top and
bottom screen would start swapped, and they would eventually swap and
stop flickering. This would never happen in melonDS or real hardware.

I suspect this is because of the interaction between GFX_FLUSH and
swiWaitForVBlank(), where there would be some timing difference to reach
the first swiWaitForVBlank() or GFX_FLUSH, and that caused the desync.

This commit moves swiWaitForVBlank() to the beginning of the game loop.
This means that, even in the first iteration of the game loop, all
emulators and hardware will be synchronized. This doesn't actually
matter in any other situation, it just makes the first iteration
consistent.
2023-01-21 19:32:02 +00:00
Antonio Niño Díaz
f1ed942ec9 example: Use new names of functions
The previous ones have just been deprecated.
2022-10-25 23:47:29 +01:00
Antonio Niño Díaz
c71313ca88 examples: Clean filesystem_multiple_textures example 2022-10-20 22:04:01 +01:00