6 ms·
TinyGL: A Small, Free and Fast Subset of OpenGL
- keeperofdakeys 12y agoGiven that this is from 2002, it probably isn't a great platform to use. It probably wouldn't support VBOs, which are required to get decent performance out of modern graphics cards. The modern day equivalent would probably be GLES.
- zerohp 12y agoIt is a software renderer, so you won't get decent performance anyway.
- adamnemecek 12y agoI didn't post it assuming that anyone would use it, I posted it to be studied. It was written by arguably one of the best programmers of all time after all.
- msie 12y agoYup, he's pretty brilliant.
- fsloth 12y agoThanks, looks interesting. And what's wrong with the people? "I can't use it, therefore it sucks"? Software rendering will always be an interesting problem domain because implementing it is a non-trivial problem.
- clarry 12y agoAs someone interested in software rendering.. thank you for posting this. I hadn't heard of this project before.
- deleted 12y ago[deleted]
- pygy_ 12y agoIt depends on your goal. It is used, for example, by ResidualVM[0], the ScummVM sister project dedicated to 3D games, like Grim Fandango. These games were rendered in software in the 90's, the lack of hardware acceleration is not an issue. When they started Residual, it was AFAIK the only portable 3D renderer. Using the OpenGL API also meant that they could easily switch to an hardware accelerated backend if needed. [0] http://www.residualvm.org/ http://www.residualvm.org/
- deleted 12y ago[deleted]
- Zancarius 12y agoI'm curious. The page was last updated March 2002. Is this project still active? Is this even still relevant given OpenGL ES?
- zanny 12y agoThis is a software mode graphics API for embedded. Since almost any embedded chip will have some graphics cores, or in their absence I have no idea what you are trying to render for, a software only API is insane in this day and age. The performance differentials are so many orders of magnitude between the best CPU and the worst GPU it isn't fair. Software rendering died a decade ago, and should be left dead. We have great new tech like EGL and GLES growth to standardize on a base set of accelerated 3d functionality you can just assume. Which is great.
- cordite 12y agoSoftware rendering can be good for making references to compare to--at least for driver implementors. Plus, there's always the people who like the challenge of creating something with mesa in dosbox for the fun of it.
- Kliment 12y agoSoftware rendering is alive and well on headless setups with no GPU.
- fulafel 12y agoNot dead, check out llvmpipe in Mesa. Ubuntu's Unity desktop uses it by default in lieu of accelerated GL. Phoronix benchmarks it regularly, getting 20 fps in some games. If you are running Mesa you can try it by setting LIBGL_ALWAYS_SOFTWARE=1.
- lloeki 12y agoAlso, Apple has one notably used as a fallback to display Core Animation stuff on a VESA driver (for safe mode, VMs, multiseat remote sessions via VNC). It goes up to OpenGL 4.1 and is fast enough to have the OS X UI be quite usable. You gan try a quick demo on either your GPU or their software renderer with OpenGL Extension Viewer[0]. [0]: https://itunes.apple.com/us/app/opengl-extensions-viewer/id444052073?mt=12 https://itunes.apple.com/us/app/opengl-extensions-viewer/id4...
- cageface 12y agoOpenGL is such a terrible API I can't imagine using it in an environment where you don't even get the cheap benefit of putting up with it, i.e. hardware acceleration.
- Xylemon 12y agoI can name a worse API: DirectX
- wolfgke 12y agoCan you give concrete arguments why you consider DirectX a worse API (other than "it only works on Windows")? When Direct3D 10/11 came out, it was considered as a lot better to prgram for than the corresponding OpenGL versions. See for example the following article from 2011 > http://www.bit-tech.net/news/gaming/2011/03/11/carmack-directx-better-opengl/1 http://www.bit-tech.net/news/gaming/2011/03/11/carmack-direc... where John Carmack clearly says that he now prefers Direct3D over OpenGL.
- fulafel 12y agoTimes change, Carmack has recently been saying good things about the low overhead OpenGL model championed by NVidia (see "Approaching Zero Driver Overhead" etc) and how it can get an over of magnitude more draw calls than D3D. reference: http://vr-zone.com/articles/john-carmack-mantle-became-interesting-dual-console-wins/61108.html?utm_source=rss http://vr-zone.com/articles/john-carmack-mantle-became-inter...
- wolfgke 12y agoLuckily rumours say that Microsoft took a lot of the good ideas from Mantle and will implement them in DirectX 12: > http://www.extremetech.com/gaming/177407-microsoft-hints-that-directx-12-will-imitate-and-destroy-amds-mantle http://www.extremetech.com/gaming/177407-microsoft-hints-tha... On the other hand: Even if the overhead for OpenGL can be lowered a lot (and I believe this is possible), this will be released as extension set - not as an elegant revised API as new DirectX versions do (see the Longs Peak fiasco).
- maggit 12y agoRelated, and also interesting (especially as a response to "TinyGL is a lot faster than Mesa"), is Mesa's llvm rendering backend llvmpipe. It compiles the rendering pipeline to llvm bitcode which is then compiled to machine code. It makes use of multiple CPU cores and SIMD instructions. The result is surprisingly quick software rendering of anything OpenGL. Key differences to TinyGL: Mesa llvmpipe implements "all" of OpenGL and GLES2 (That is, everything that is implemented in Mesa works with this backend) and the rendering is accurate. I have not done a head-to-head benchmark, and I don't think it would be that interesting since the two libraries are from entirely different ages. The existence of llvmpipe was part of the rationale for Qt5 to require OpenGL (GLES?) for rendering [1]. Qt5 has no other rendering backend. [1]: I remember this from the beginning of Qt5 development, which is so long ago that I have a hard time finding a quotation. Maybe I can use this Phoronix article as backup: http://www.phoronix.com/scan.php?page=news_item&px=MTA5ODc http://www.phoronix.com/scan.php?page=news_item&px=MTA5ODc "The Qt developers praised the CPU-based Gallium3D driver and will be relying upon LLVMpipe when no GPU hardware driver is available. They say that using LLVMpipe is working better than any software rasterizer of their own. " "LLVMpipe remains too slow for OpenGL gaming (...), but it's good enough for a tool-kit and composited desktop."