EASy68K  
It is currently Fri Feb 21, 2020 2:01 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jan 29, 2020 5:30 pm 
Offline

Joined: Tue Jan 28, 2020 12:44 pm
Posts: 2
Hi everyone,

I'm on an EASy68k project for the University in which we have to develop a game. We (my classmate and I) are developing Pac-man.

The point is that there's a section where we have to contemplate different frame rates depending on the computer, specially for slow ones.
We have to write a 2nd Main class where we have to include the necessary code for contemplating that frame rate changes, but we have no idea about how to develop that code, cause it's not explained in the project statement (We're asked to do it, but not how).

If anyone knows how to develop that code, we would really appreciate that help.

Thanks!


Top
 Profile  
 
PostPosted: Thu Jan 30, 2020 12:49 am 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1116
Trap task 8 "Return time in hundredths of a second since midnight in D1.L.
Add code to your game loop which reads the time, subtracts the previous time, then compute the game loops per second. You will probably want to compute an average to smooth out the fps number.

_________________
Prof. Kelly


Top
 Profile  
 
PostPosted: Thu Jan 30, 2020 11:52 am 
Offline

Joined: Tue Jan 28, 2020 12:44 pm
Posts: 2
Okey, I'll give it a try! Thanks for your help!!


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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:  
cron
Powered by phpBB® Forum Software © phpBB Group