Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIMER
#1
Yep, yet another one of my questions :roll: . Ok. I'm trying to limit my fps. In qb I would do this:
Code:
wt = timer + .03
Do
i$ = inkey$
loop until timer > wt
However, when i try this in fb, it goes one second where it works, then the next second stays in the loop the whole time. so i get 30 fps for 1 second then 1 fps the next and it repeats. Why??? help! Sad
[Image: freebasic.png]
Reply
#2
How is wt declared?
Remember FB assumes undeclared variables as integers by default, whereas QB used singles...
ngelo Mottola - EC++
Reply
#3
DOH! Big Grin my skills are somewhat lazy atm. i didn't have it declared. thanks Smile
[Image: freebasic.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)