DCEmulation

dreamcast development • homebrew software • hardware hacking • indie games • emulators • and more!
Back to main site
It is currently Sat Feb 24, 2018 5:01 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Question about vblank
PostPosted: Tue Feb 13, 2018 2:26 am 
Offline
DCEmu Freak
DCEmu Freak

Joined: Thu Mar 10, 2016 6:14 am
Posts: 51
Hi,

I'm using pvr to draw frame :
Code:
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:
void menuscreen() {
   uint8_t exitBoucle = 0;
   
   while(!exitBoucle) {
draw_menu();
   code_ingame(&exitBoucle);
      
   }


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 13, 2018 9:41 am 
Offline
The Crabby Overlord
The Crabby Overlord
User avatar

Joined: Mon May 27, 2002 9:31 am
Posts: 5235
You do not have to add a vid_waitvbl().


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 13, 2018 10:11 am 
Offline
DCEmu Freak
DCEmu Freak

Joined: Thu Mar 10, 2016 6:14 am
Posts: 51
Thanks.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group