On 03.09.2010 00:00, Alexandre Bergel wrote:
What do you mean by "culling" ?
Cheers, Alexandre Excluding objects that are not visible in the window from being rendered.
Cheers, Henry
On 2 Sep 2010, at 17:55, Henrik Sperre Johansen wrote:
Also, if your main goal is to speed up Mondrian, a good idea would be to do some culling, which is fully possible without switching to OpenGL. When I looked some time ago at least, the model was more geared towards easy creation/manipulation than optimized drawing speed. IE. although it keeps a cache of visible items or something similar, my memory is a bit hazy, it still iterates and draws every object in this cache each draw cycle, even if they are off screen. It might not mean much when looking at an overview of a large model, but when zoomed in I was at least able to get decend FPS rather than< 1 FPM ;)
Cheers, Henry
Note: This is things you'd want to do even if you were rendering with OpenGL, although it performs culling, sending the data for the entire model can be a big overhead.
On 02.09.2010 21:41, Fernando olivero wrote:
Ahh! And also what Andreas mentions.
AlienOpenGL is not current being maintained and is missing features. Although it works for what i needed it at the moment.
Tudor: if you are going to the ESUG we could spend some time with this.
Saludos, Fernando
On Sep 2, 2010, at 8:54 PM, Andreas Raab wrote:
On 9/2/2010 11:30 AM, John M McIntosh wrote:
I think if you hunt in the archives you'll find people have attempted to replace Morphic with Open/GL calls via FFI
Oh like http://www.squeaksource.com/AlienOpenGL Or http://www.squeaksource.com/CroquetGL (much more complete w/ extensions etc). Something like this might just work:
(OpenGL new) glClearColor: 1.0 with: 0.0 with: 0.0 with: 1.0; swapBuffers.
Cheers, - Andreas
On 2010-09-02, at 8:48 AM, Tudor Girba wrote:
Hi,
Interesting read, but I am still not sure to understand the implications, so let me ask you another question: is there a way to make use of OpenGL by generating vector graphics from within Pharo?
I am particularly interested if there are ways to improve visualization tools like Mondrian to make it use the hardware (and thus maybe have reasonable speed when drawing complex and maybe aliased graphs).
Cheers, Doru -- =========================================================================== John M. McIntosh<johnmci@smalltalkconsulting.com> Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ===========================================================================
Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project