Realtime bumpmapping in 2D

Developed or developing a new product in PureBasic? Tell the world about it.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

First Version: 5fps
New Version: 23-30 fps

For my system too slow for using it in games, but maybe for a good menu-effekt...
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Ok,

First version 5 - 9 FPS
Second Version - 33 - 50 Fps

Taking in consideration that the purebasic plot is not the fastest i've seen (windows itself has 2 versions of plot -"SetPixelV is faster than SetPixel" )and that DrawText is also extremly slow so these are very good results!

Also i believe a full screen version might give a few extra FPS!
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Num3 wrote:Taking in consideration that the purebasic plot is not the fastest i've seen (windows itself has 2 versions of plot -"SetPixelV is faster than SetPixel" )
When used with a Screen, the Plot(x,y,COLOR) is accelerated and is as fast as possible (hundred times faster than the SetPixelV() 'fast' windows version). Most of the time is spend by calculation on this example, so the Plot() speed isn't really relevent (You could always use the DSA (Direct Screen Access with DrawingBuffer()) with a pointer to have the fastest plot() ever).
Post Reply