was that in a VM ?, my observation is that fps in a VM are not reliable in this case, also what's your hardware specs.btw, I had no idea about the GLSL language, looks very much like C, wonder if you could use it for things other than graphics.

srvaldez wrote:@ Imortisit's possible then that the erratic fps behavior is specific to Windows, I will try in Ubuntu and see.[edit] Ubuntu in a VM fps is erratic also.

The FPS stayed at 90 most of the time, but when it would get really close to the surface or really far way from everything, the FPS would spike.

It looks to me like it was getting higher when there was less on the screen to draw. I don't think that is unexpected.

BTW: Tried it on a machine with crappy onboard GPU and got 0 to 5 FPS. 0 I am assuming is a decimal rounded down. It also slowed everything down on this machine. Same as before, though. 5 FPS was when I got really close to surfaces or far away from everything.

dim as integer mx,my,mb,frames,fpsdim as double tStart = Timer()dim as double tLast=tStartwhile inkey="" dim as double tNow=Timer() ' set uniform float iGlobalTime glUniform1f(iGlobalTime,tNow-tStart)/' if frames mod 3=0 then ' set vec4 iMouse if getMouse(mx,my,,mb)=0 then if mb then glUniform4f(iResolution,mx,scr_h-my,1,1) else glUniform4f(iResolution,0,0,0,0) end if end if end if'/