tag:blogger.com,1999:blog-8935780327334775165.post1171940664354399990..comments2023-08-07T22:48:57.800+08:00Comments on Entity Crisis: GFX Demo CodeUnknownnoreply@blogger.comBlogger7125tag:blogger.com,1999:blog-8935780327334775165.post-36692697351486444132007-08-01T15:18:00.000+08:002007-08-01T15:18:00.000+08:00I played with point sprites in pyglet back when I ...I played with point sprites in pyglet back when I started the new job.<BR/><BR/>Through ctypes (just about the slowest way you can do anything ;) using point sprites and vertex arrays I can happily animate a sparker with 1000 sparkles at ~150fps on my crappy G4 powerbook.<BR/><BR/>And it's sooo easy.Richard Joneshttps://www.blogger.com/profile/04600262656208358816noreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-59552282058701365862007-08-01T13:42:00.000+08:002007-08-01T13:42:00.000+08:00illume: I'm using vertex arrays, so these sprites ...illume: I'm using vertex arrays, so these sprites are completely dynamic, as compared to static display lists.Simon Wittberhttps://www.blogger.com/profile/02730025645144151014noreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-14086890174213475612007-08-01T12:53:00.000+08:002007-08-01T12:53:00.000+08:00coolness.Not sure what you're using for rendering....coolness.<BR/><BR/>Not sure what you're using for rendering... Looks like a display list? That seems like the quickest way to do non moving images.<BR/><BR/>Did you know about the point sprite extensions?<BR/><BR/>eg.<BR/>http://oss.sgi.com/projects/ogl-sample/registry/ARB/point_sprite.txt<BR/><BR/>I can't remember the earliest extension which was used in quake 1... but it's accelerated by most hw opengls.<BR/><BR/>There's a bunch of examples if you search the web for point sprites.René Dudfieldhttps://www.blogger.com/profile/17762358075557755436noreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-18954894548342349382007-08-01T12:38:00.000+08:002007-08-01T12:38:00.000+08:00Very cool. I can do 100,000 64x64 pixel-sized spr...Very cool. I can do 100,000 64x64 pixel-sized sprites at 7 fps. That's on an Intel Core Duo @ 2.13 GHz and a Nvdia 7900GS.<BR/><BR/>--MikeAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-32353640658223026922007-08-01T11:43:00.000+08:002007-08-01T11:43:00.000+08:00Oh, I nearly forgot. pyglet has a "lots of sprites...Oh, I nearly forgot. pyglet has a "lots of sprites" benchmarking program for both itself and pygame. They're in the pyglet svn under contrib/scene2d/examples/los.py and tools/los_pygame.pyRichard Joneshttps://www.blogger.com/profile/04600262656208358816noreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-22393359496194452102007-08-01T11:32:00.000+08:002007-08-01T11:32:00.000+08:00OK, I've patched GFX to use pyglet :)Mostly that i...OK, I've patched GFX to use pyglet :)<BR/><BR/>Mostly that involved removing code ;)<BR/><BR/>I get 136 FPS on my powerbook G4Richard Joneshttps://www.blogger.com/profile/04600262656208358816noreply@blogger.comtag:blogger.com,1999:blog-8935780327334775165.post-89088458384783102822007-08-01T11:16:00.000+08:002007-08-01T11:16:00.000+08:00Curses! I don't have pygame installed . I modified...Curses! I don't have pygame installed . I modified the example to use pyglet to set up the window etc. but GFX uses pygame internally :(Richard Joneshttps://www.blogger.com/profile/04600262656208358816noreply@blogger.com