Commit Graph

12 Commits

Author SHA1 Message Date
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
3ebcac15ba library: examples: Add enums for texture formats and parameters
This helps discover the possible options.
2022-10-20 01:51:19 +01:00
Antonio Niño Díaz
4babec1292 examples: Cleanup more examples 2022-10-19 22:57:35 +01:00
Antonio Niño Díaz
50a0716938 examples: Add example of blended animations 2022-10-18 00:59:29 +01:00
Antonio Niño Díaz
da2be26de1 examples: Change license to CC0-1.0 2022-10-16 22:55:06 +01:00
Antonio Niño Díaz
db8add4d7e example: Cleanup source files 2022-10-16 22:03:41 +01:00
Antonio Niño Díaz
37395b0ed6 examples: Update examples of animated models
- Use DSM/DSA files instead of NEA files.
- Use nitroFS instead of FAT.
2022-10-13 21:43:31 +01:00
Antonio Niño Díaz
38f419d94d Add some notes to examples that use BMP files 2021-08-24 02:34:07 +01:00
Antonio Niño Díaz
930916fa35 Minor fixes to examples 2019-06-09 01:58:58 +01:00
Antonio Niño Díaz
c1ad01881b Fix coding style of loading examples 2019-06-05 02:09:46 +01:00
Antonio Niño Díaz
7d31063039 Convert all example files to UNIX line endings 2019-06-04 17:56:18 +01:00
Antonio Niño Díaz
4640f17c4a Rename all folders to lowercase 2019-06-04 15:57:30 +01:00