SetUpdateRate / GetUpdateRate
Monkey Forums/Monkey Programming/SetUpdateRate / GetUpdateRate| 
 | ||
| I could really need something like GetUpdateRate for SetUpdateRate Or is there another way that I missed? | 
| 
 | ||
| This what I use to measure frames per-second. 'Count FPS fps=fps+1 If fps_t<Millisecs() fp=(fps)-1 fps_t=1000+Millisecs() fps=0 Endif DrawText(fp,0,0) | 
| 
 | ||
| Yes, ofcourse. Thanks! But I meant a function to get the update rate previously set with Monkeys own SetUpdateRate () | 
| 
 | ||
| Well, the default is 60, so unless you change it, it'll stay that way.  Couldn't you just store that in a var? *EDIT* Scrap that, just realised it's for your framework. | 
| 
 | ||
| No problem. Yes it's for the framework. Of course I can put in in a var but I guess it would be nice to have a GetUpdateRate () | 
| 
 | ||
| Ive added this to Diddy via native calls, if you want to have a look: http://code.google.com/p/diddy/source/browse/#svn%2Ftrunk%2Fsrc%2Fdiddy%2Fnative (iOS not tested...) Just wondering what you are going to use it for? Debug info? | 
| 
 | ||
| Need it to calculate timing tweening/fixed rate stuff. | 
| 
 | ||
|  Well, the default is 60, so unless you change it, it'll stay that way.  That is simply untrue. | 
| 
 | ||
| yep, and if you change it to let's say 30 it would be nice to read that. | 
| 
 | ||
| That is simply untrue. You're right, sorry. Don't know why I thought that. | 
| 
 | ||
| We all make mistakes;) | 
| 
 | ||
| @Playniax - Did you see that we have added this to Diddy? You can take the code and add it to your project if you want. | 
| 
 | ||
| @therevills - I had a quick look. maybe I will. Thanks! |