[osg-users] Per-Frame/per context operation

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Thu Feb 18 03:53:10 PST 2016


Hi,
I'm using osg::Operation to perform async tasks and 
osg::GraphicsOperations added via setRealizeOperation to perform 
on-realize per context tasks.
What is the correct usage of osg::GraphicsOperations if I want it to be 
performed once per frame and context? Let's say at the end of the draw.
My intention is to use the NVX_gpu_memory_info[1] to keep track of 
memory use and eviction, and since it needs a valid context to operate 
correctly I thought the graphicsOperation would be the way to go.

[1] 
https://www.opengl.org/discussion_boards/showthread.php/170429-NVX_gpu_memory_info

Cheers
Sebastian



More information about the osg-users mailing list