Page 4 of 5
					
				
				Posted: Sat Apr 29, 2006 8:32 am
				by pjay
				Good Job!
Haven't you slept.....  
   
 
			 
			
					
				
				Posted: Sat Apr 29, 2006 8:43 am
				by netmaestro
				This version has fps's similar to the last version but for some reason looks smoother and more professional. I think it's of a quality that, when viewed in comparison to the Blitzmax demo, is a really good advertisement for PureBasic. Even at 1000 sprites the movement is nice and smooth, while the Blitz one is much slower and jerkier.
			 
			
					
				
				Posted: Sat Apr 29, 2006 10:01 am
				by thefool
				PB version is, as netmaestro says, better in quality and smoothness.
but i dont find the optimized version better  
  
and if it is, we talk only 1 sprite. Another thing; pb version is directx, blitz is ogl. Imho opengl is faster, so lets see...
if you would just share the source so everyone could optimize 

 
			 
			
					
				
				Posted: Sat Apr 29, 2006 10:07 am
				by pjay
				I took the time to attempt converting this to OpenGL & it's running pretty well here, mostly over twice the speed of ZSprite.
@ 100:
ZSprite: 332 fps
ZSpritevsPB0.7: 355 fps
OpenGL: 624 fps
@ 1000:
ZSprite: 37 fps
ZSpritevsPB0.7: 45 fps
OpenGL: 92 fps
Whilst ZSprite does lag behind, we should remember that it's an engine, so it has to do a lot more processing in the background (i'm not saying it couldn't be faster though!)
			 
			
					
				
				Posted: Sat Apr 29, 2006 10:12 am
				by thefool
				UPLOAD 

 
			 
			
					
				
				Posted: Sat Apr 29, 2006 10:14 am
				by pjay
				I can e-mail & maybe you'd host????
			 
			
					
				
				Posted: Sat Apr 29, 2006 10:24 am
				by thefool
				
			 
			
					
				
				Posted: Sat Apr 29, 2006 10:28 am
				by pjay
				File:1->
PBlimp.rar
Hopefully that's done the job.
 
			 
			
					
				
				Posted: Sat Apr 29, 2006 10:31 am
				by thefool
				Very nice and VERY fast!
Overrules the blitz version in a single wink.
Is it assembly optimized or anything, or just pure pb and some ogl functions?
(and would YOU care to share the source for your pb-mates?)
			 
			
					
				
				Posted: Sat Apr 29, 2006 10:50 am
				by netmaestro
				Quite impressive, was it done using PB 4 and the OGL subsystem?
			 
			
					
				
				Posted: Sat Apr 29, 2006 10:53 am
				by pjay
				It's just PB 3.94 & OpenGL.  I'm not entirely sure assembly optimization would help as it's the rendering that takes time.
It was *mostly* made from cuts & pastes from these very forums (much of which dated back to 2002!)
			 
			
					
				
				Posted: Sat Apr 29, 2006 10:56 am
				by thefool
				you can nearly always make something faster 

 
			 
			
					
				
				Posted: Sat Apr 29, 2006 7:02 pm
				by Derek
				I only get 32 fps for 700 sprites on PB using 50% cpu.
On Blitzmax I get 55 fps for 700 but using 100% cpu.
I only have an nvidia gf4 ti4600.
So blitz wins easily.
			 
			
					
				
				Posted: Sat Apr 29, 2006 9:31 pm
				by IceSoft
				v0.8 uploaded
[ADD] Speed Level 2 implemented.
Compare 
FPS and 
CPU time with the
 Blitz zSprite demo and with the nativ
 OpenGL PB version again 
 
File:1->
zSpriteVsPB_test1.zip

 
			 
			
					
				
				Posted: Sat Apr 29, 2006 11:47 pm
				by IceSoft
				pjay wrote:
Whilst ZSprite does lag behind, we should remember that it's an engine, so it has to do a lot more processing in the background (i'm not saying it couldn't be faster though!)
Don't forget: PB is 'also an engine' for DirectX 7.  
