MethodicalJ
09-07-2004, 12:42 PM
Hey guys (and beautiful nerd girls), got a question.
I'm making a 3d space-sim engine, all from scratch. I render to my own RGB image format, then move it to an MIT-SHM shared memory image. While this method works hundreds of times faster than using standard xlib pixmaps and such, it is still eating up half of my clock time:
normal rendering (rendering to my image and then translating to pixel codes, then to the SHM image, then to the screen) gets about 25 fps.
doing all the rendering but not actually sending it to the shm imaage before the next frame doubles my framerate.
so I need to find the fastest way to put data on the screen. If anyone knows about full screen modes, writing to the framebuffer, or anything, I could really use pointers to some documentation or libraries.
By the way this game is incredibly cool. I attached a tar file for your pleasure. Check the readme for compile instructions.
I'm making a 3d space-sim engine, all from scratch. I render to my own RGB image format, then move it to an MIT-SHM shared memory image. While this method works hundreds of times faster than using standard xlib pixmaps and such, it is still eating up half of my clock time:
normal rendering (rendering to my image and then translating to pixel codes, then to the SHM image, then to the screen) gets about 25 fps.
doing all the rendering but not actually sending it to the shm imaage before the next frame doubles my framerate.
so I need to find the fastest way to put data on the screen. If anyone knows about full screen modes, writing to the framebuffer, or anything, I could really use pointers to some documentation or libraries.
By the way this game is incredibly cool. I attached a tar file for your pleasure. Check the readme for compile instructions.