GLBasic forum

Main forum => Bug Reports => Topic started by: PeeJay on 2008-Jan-25

Title: USEASBMP unuseably slow
Post by: PeeJay on 2008-Jan-25
I manage to get around 2 frames per second here if I include USEASBMP in my code. I know my video card is hardly earth shattering (a NVidia FX5500) but that can't be right, surely?
Title: USEASBMP unuseably slow
Post by: Kitty Hello on 2008-Jan-25
Should not be. What screen resolution? Fullscreen or windowed? Can you post an example?
Title: USEASBMP unuseably slow
Post by: PeeJay on 2008-Jan-25
Sure. In this code:

Code (glbasic) Select
// --------------------------------- //
// USEASBMP bug
// --------------------------------- //

SETSCREEN 640,480,1

WHILE KEY(01)=FALSE

FOR loop=1 TO 100
SETPIXEL RND(640),RND(480),RGB(200,0,0)
NEXT

time1=GETTIMERALL()
USEASBMP
time=GETTIMERALL()-time1

PRINT "TIME TAKEN : "+time,0,460

SHOWSCREEN

WEND
I'm averaging around 1700ms for the USEASBMP command to work. Windowed makes no difference. Changing to 320x240 speeds it up to around 1680ms
Title: USEASBMP unuseably slow
Post by: D2O on 2008-Jan-25
15 ms in fullscreen
and
11 ms in windowed

If your GL Driver OK ?
Title: USEASBMP unuseably slow
Post by: Kitty Hello on 2008-Jan-25
Fixed in next update. Surface grabbes was max texture size (which is 8000x8000 or so....)
Title: USEASBMP unuseably slow
Post by: PeeJay on 2008-Jan-25
Thanks Gernot - works a treat - down to 5ms now :)

D²O - your video card is obviously a tad better than mine! :D