softrender startup for OSX February 13, 2006
Posted by winden in coding, demoscene.trackback
It has been a long time since I started testing how to compile a Cocoa .app from the command line, and today I managed to make it work… it’s a very basic startup which provides for loading graphics via the builtin Quicktime libraries and rendering a framebuffer into a window via the builtin OpenGL system… as you can see no SDL crap taking 50% CPU for nothing… the OpenGL system allows using 32bit RGBA, 16bit RGB or 16bit YUV framebuffer and blits it to the window using DMA with zerocopy buffers… using some Apple extensions we manage to convince the system not to copy the buffer to kernel memory and gfx card not to copy the buffer to video ram before drawing… at the end due to running windowed the system is placing a copy on videoram prior to compositing the screen but it’s fully async and automatic and when running fullscreen should be able to do hardware double buffering for tear-free 100hz movement :)
Just have a look at the sourcecode and ask me any questions you manage to find out…
todo list for this crap:
- use code to generate the window and view objects instead of NIB files
- manage to use Quicktime to load some audio file and sync to it
- make a fullscreen mode (maybe easier when given the code-generated method?)
Comments»
No comments yet — be the first.