Test mousex() and mousey() once per loop and
return the values into variables:
local mx:int=mousex()
local my:int=mousey()
You might consider creating a mouse object to hold this kind of data.
You're not doing enough in your update() to cause anything to slowdown so it could be a driver issue. Try GL driver and see what happens. Try omitting the drawline stuff and see what happens.
There's nothing I can see wrong with the code itself.
<edit> P.S. Have you bought Bmax yet?
return the values into variables:
local mx:int=mousex()
local my:int=mousey()
You might consider creating a mouse object to hold this kind of data.
You're not doing enough in your update() to cause anything to slowdown so it could be a driver issue. Try GL driver and see what happens. Try omitting the drawline stuff and see what happens.
There's nothing I can see wrong with the code itself.
<edit> P.S. Have you bought Bmax yet?