Question about vblank

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
tonma
DCEmu Freak
DCEmu Freak
Posts: 68
Joined: Thu Mar 10, 2016 7:14 am

Question about vblank

Post by tonma » Tue Feb 13, 2018 3:26 am

Hi,

I'm using pvr to draw frame :

Code: Select all

void draw_menu() {

    pvr_wait_ready();

    pvr_scene_begin();
    pvr_list_begin(PVR_LIST_OP_POLY);		
    pvr_list_finish();

    pvr_list_begin(PVR_LIST_TR_POLY);	
	draw_menu_screen();	
    pvr_list_finish();    
	pvr_scene_finish();
}
Does "pvr_wait_ready ();" is enough to keep the framerate at 60 / 50Hz or do I have to add "vid_waitvbl ()" in my main function for my gameplay work ?

Code: Select all

void menuscreen() {
	uint8_t exitBoucle = 0;
	
	while(!exitBoucle) {
draw_menu();
	code_ingame(&exitBoucle);
		
	}
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5293
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Contact:

Re: Question about vblank

Post by BlueCrab » Tue Feb 13, 2018 10:41 am

You do not have to add a vid_waitvbl().
tonma
DCEmu Freak
DCEmu Freak
Posts: 68
Joined: Thu Mar 10, 2016 7:14 am

Re: Question about vblank

Post by tonma » Tue Feb 13, 2018 11:11 am

Thanks.
Post Reply