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: 82
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Thu Mar 10, 2016 7:14 am
Has thanked: 0
Been thanked: 1 time

Question about vblank

Post by tonma »

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: 5652
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: Question about vblank

Post by BlueCrab »

You do not have to add a vid_waitvbl().
tonma
DCEmu Freak
DCEmu Freak
Posts: 82
Joined: Thu Mar 10, 2016 7:14 am
Has thanked: 0
Been thanked: 1 time

Re: Question about vblank

Post by tonma »

Thanks.
Post Reply