Page 1 of 1

Waiting function

Posted: March 31st, 2016, 4:38 am
by ThePSXFan
So, I'm doing a homebrew game using the PSY-Q SDK.

Is there a way to wait (sleep) for some time, without using the VSync way?

I want to have frames that are redrawing in a while loop, and in the meantime wait for a period of time and jump to another part of the program, since VSync won't work, because the frames won't redraw anymore during the VSync function.

Thanks.

Re: Waiting function

Posted: March 31st, 2016, 5:12 am
by Shadow
Put your rendering code in a separate function and keep calling it (IE: keep swapping double buffers, but don't update the order tables). This will keep the GPU free-running whilst you update other things. If you need more help, you'll have to share your code since it's hard to guess what you're trying to do exactly since (for example), some CD-ROM functions are the 'blocking type' which means the whole PSX is interrupted until the CD tasks are completed.

Re: Waiting function

Posted: March 31st, 2016, 6:05 pm
by gwald
I'm not 100% sure on this, but I think Hsync and Vsync are always running.
It doesn't matter if your displaying anything or not.