
Code: Select all
a.f=2.5
b.f=5.3
c.f=25.6
For t=b To c Step a
Next t
No big problem.dobro wrote:I would want todo this![]()
Code: Select all
a.f=2.5 b.f=5.3 c.f=25.6 For t=b To c Step a Next t
Code: Select all
a.f=2.5
b.f=5.3
c.f=25.6
t=b:Repeat
t+a:Until t>c
I wonder how KEGA-fusion emulator (for example) can do so perfect and smooth sync while it waste LESS THAN 2% EVERYTIME when running an emulated game. I've tested megaturrican, bloodlines, and other games in a AMD K7 900MHz GEFORCE2 32MB and on a Athlon64 3000+ with ATI Radeon 9600, and in both scrolling and sprites movements are incredibly smooth (syncronized to pc monitor refresh, which emulator put to 60Hz as soon it starts).Truth_Seeker wrote:I thought almost all professional games use around 100% cpu when the game is in focus but when it is not the cpu useage is very low. Correct? Afaik you can do that in PB too, just check if the game is active and then when it is not just delay the game.
Professional games only use the required CPU power, and using 100% CPU over a longer period might damage the CPU if you're cooling is not good enough.Truth_Seeker wrote:I thought almost all professional games use around 100% cpu when the game is in focus but when it is not the cpu useage is very low. Correct? Afaik you can do that in PB too, just check if the game is active and then when it is not just delay the game.
Psychophanta wrote:No big problem.dobro wrote:I would want todo this![]()
Code: Select all
a.f=2.5 b.f=5.3 c.f=25.6 For t=b To c Step a Next t
You already can do that. It's a syntax question:Code: Select all
a.f=2.5 b.f=5.3 c.f=25.6 t=b:Repeat t+a:Until t>c