Not flicker but tucker^^

Archives Forums/Linux Discussion/Not flicker but tucker^^

regaa(Posted 2005) [#1]
If the Code looks like this:

Graphics 800,600
bglsetswapinterval(0) '<--- return 0

while not keydown(KEY_ESCAPE)
If MilliSecs()-timer>1000
timer=MilliSecs()
fps_=fps
fps=0
endif
fps:+1

SetColor 255,255,255
DrawText fps_,0,0
flip
wend

...DrawText return about 47-50 fps, display is running@115Hz. What should i do to achieve more than just 50fps -_- ?


Robert(Posted 2005) [#2]
I believe that there is a query over the accuracy of the MilliSecs command. For accurate FPS readings you need to find some way of querying the system's high performance timer. Sadly I do not know how to do this on Linux.


regaa(Posted 2005) [#3]
:( . Will this prob ever be solved? Or did i sth. wrong by installing the graphic card drivers, etc?


skidracer(Posted 2005) [#4]
bglsetswapinterval is not currently implemented in the linux beta


regaa(Posted 2005) [#5]
ah, ok. Then i will code @ 47hz till this will be corrected ^^. Thx