cube_ta_fullscreen_textured: reorder vsync wait
This commit is contained in:
parent
5c5422621d
commit
a2cb316110
@ -817,6 +817,13 @@ void main()
|
|||||||
|
|
||||||
transfer_ta_cube(texture_start);
|
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
|
// start the actual rasterization
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
@ -825,10 +832,6 @@ void main()
|
|||||||
// region array
|
// region array
|
||||||
*STARTRENDER = 1;
|
*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
|
// increment theta for the cube rotation animation
|
||||||
// (used by the `vertex_rotate` function)
|
// (used by the `vertex_rotate` function)
|
||||||
theta += 0.01f;
|
theta += 0.01f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user