cube_ta_fullscreen_textured: reorder vsync wait

This commit is contained in:
Zack Buhman 2025-08-26 20:58:29 -05:00
parent 5c5422621d
commit a2cb316110

View File

@ -817,6 +817,13 @@ void main()
transfer_ta_cube(texture_start);
//////////////////////////////////////////////////////////////////////////////
// wait for vertical synchronization (and the TA)
//////////////////////////////////////////////////////////////////////////////
while (!((*SPG_STATUS) & SPG_STATUS__VSYNC));
while (((*SPG_STATUS) & SPG_STATUS__VSYNC));
//////////////////////////////////////////////////////////////////////////////
// start the actual rasterization
//////////////////////////////////////////////////////////////////////////////
@ -825,10 +832,6 @@ void main()
// region array
*STARTRENDER = 1;
// wait for vertical synchronization
while (!((*SPG_STATUS) & SPG_STATUS__VSYNC));
while (((*SPG_STATUS) & SPG_STATUS__VSYNC));
// increment theta for the cube rotation animation
// (used by the `vertex_rotate` function)
theta += 0.01f;