Help Please

Blitz3D Forums/Blitz3D Programming/Help Please

JBR(Posted 2004) [#1]
Hello, Just trying to get an idea of speed on various machines. The slower the machine the better!
If you could report back the red number in the top left of the screen.

Graphics 1024, 768, 32, 0

Global images = 192

Global gfx64=CreateImage(64,64,images)
For t = 0 To (images-1)
	SetBuffer ImageBuffer(gfx64,t)
	Text 0,0,t
Next 

SetBuffer BackBuffer()

Delay(1000) : frames% = 0 : time%=MilliSecs()

Global TL_X = 16
Global TL_Y = 16

For j=1 To 100
	plot_PA_Back()
	Flip False
	frames% = frames% + 1	
Next

Color 255,55,55 : Text 30,30, (Float(MilliSecs()-time%))/(Float(frames%)) : Flip

WaitKey()
End


Function plot_PA_Back()
	os_x = (TL_X And 63)
	os_y = (TL_Y And 63)

	For y=0 To 12
		For x=0 To 16

			xx = (x Shl 6)-os_x : yy = (y Shl 6)-os_y

			b%=(x+y*16) Mod (images)
			DrawBlock gfx64, xx, yy, b%
		Next
	Next
End Function


Not sure everyones PC will handle 192 images; so you may need to reduce to whatever works.

Also, does anyone know why changing to Graphics3D has such a hit on performance?

Thanks in advance
Marg


Shambler(Posted 2004) [#2]
2.42 using graphics
2.12 using graphics3D


JBR(Posted 2004) [#3]
Thanks Shambler, interesting that your 3D is faster. Using 3D increases my time from 1.8 to 4.9 (fullscreen) which is pretty strange! When I use a window it comes down to 2.41 in 3D.

Are there some takers around the 1GHz mark?

I'm just trying to get an idea of what screensize I can use that will be playable on most systems.

Thanks
Marg

P4 3GHz Ati 9800Pro


Genexi2(Posted 2004) [#4]
1.68-1.75 without
1.8-1.87 with Graphics3d

1.54ghz AMD Athlon (1.54ghz)
128mb GF FX5200
512mb RAM


ckob(Posted 2004) [#5]
wow i tried this in blitz3d and b+

blitz3d
graphics - 2.10
graphics3d - 2.0

b+
graphics - 3.23


JBR(Posted 2004) [#6]
Thanks peeps; seems I'll have no probs using 1024 by 768.

ckob - what system did you run it on?

Anyone with around a 1GHz system?

Thanks
Marg


Rob(Posted 2004) [#7]
graphics = 1.5
graphics3d = 1.42