Canvas troubleshooting: Difference between revisions

Jump to navigation Jump to search
m
mNo edit summary
Line 122: Line 122:
{{Note|The following patches are intended to help better understand what's going on behind the scenes. They are intended to be regularly rebased onto SG/FG 'next'. In the mid-term, our hope is to ensure that people working on Nasal/Canvas related features get a better understanding about when, where and why performance is affected.}}
{{Note|The following patches are intended to help better understand what's going on behind the scenes. They are intended to be regularly rebased onto SG/FG 'next'. In the mid-term, our hope is to ensure that people working on Nasal/Canvas related features get a better understanding about when, where and why performance is affected.}}


=== Adding draw masks for Canvas ===
The following patch is intended to help determine the rendering overhead of Canvas by adding optional draw-masks for disabling rendering of Canvas textures via their corresponding placements (aircraft, scenery and GUI):
<syntaxhighlight lang="cpp">
</syntaxhighlight>
Under the hood, the corresponding Nasal/C++ code updating Canvas textures would obviously still be running - it would just be rendering that is explicitly disabled here.
=== Hooking up Canvas to the Osg Stats ===
=== Hooking up Canvas to the Osg Stats ===
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">

Navigation menu