Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
standard GfxLib speed
#1
I wanted to make a mouse cursor. But the screencopy is sooooo slow. WHY? In 640x480x24 mode on my P500MHz the cursor jumps and it looks like it's about 10-15 FPS.

Here is the sample code. Any ideas gow to make it faster/more efficient?


Code:
screen 18, 24, 2, 1
screenset 1,0

line (0,0)-(27,27), rgb(255,0,255), BF
line (0,0)-(27,27), rgb(255,255,255)
dim cursor((28 * 28 * 4) + 4)
get (0,0)-(27,27), cursor

do
   if MULTIKEY(&h01) then end
   getmouse mx,my
   cls
   circle (320, 240), 200, rgb(255,0,0)
   put (mx, my), cursor, TRANS
   screencopy 1,0
loop
img]http://img59.exs.cx/img59/7237/aqsig2el.png[/img]
Reply


Messages In This Thread
standard GfxLib speed - by Aquarius - 02-02-2005, 07:19 PM
standard GfxLib speed - by steven_basic - 02-02-2005, 07:52 PM
standard GfxLib speed - by Z!re - 02-02-2005, 08:17 PM
standard GfxLib speed - by na_th_an - 02-02-2005, 08:31 PM
standard GfxLib speed - by lillo - 02-02-2005, 08:38 PM
standard GfxLib speed - by 1000101 - 02-02-2005, 08:45 PM
standard GfxLib speed - by Aquarius - 02-02-2005, 10:25 PM
standard GfxLib speed - by lillo - 02-02-2005, 10:33 PM
standard GfxLib speed - by v3cz0r - 02-02-2005, 10:44 PM
standard GfxLib speed - by Z!re - 02-02-2005, 11:01 PM
standard GfxLib speed - by na_th_an - 02-02-2005, 11:21 PM
standard GfxLib speed - by Aquarius - 02-02-2005, 11:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)