20,741
edits
m (→Objective: lod in osg: primarily relevant for 3D scenes (CanvasModel)) |
|||
Line 58: | Line 58: | ||
{{Note|For the sake of simplicity, we are going to work with a simple code snippet showing a Canvas GUI dialog.}} | {{Note|For the sake of simplicity, we are going to work with a simple code snippet showing a Canvas GUI dialog.}} | ||
[[File:Snippets-canvas-dialog.png|right]] | [[File:Snippets-canvas-dialog.png|right]] | ||
{{FGCquote | |||
|1= I'd suggest to print out the type/sie of each variable used in that line, i.e. using typeof()/size() or just '''debug.dump()'''. | |||
that should tell us if there is anything odd there - maybe, the cmd vector has grown massively or something like that. | |||
Alternatively, pause the simulator and navigate to the property tree node of the Canvas group and inspect that (you can post a screenshot here) | |||
|2= {{cite web | |||
| url = http://forum.flightgear.org/viewtopic.php?p=273246#p273246 | |||
| title = <nowiki>Re: 777 freezes and FPS loss</nowiki> | |||
| author = <nowiki>Hooray</nowiki> | |||
| date = Jan 18th, 2016 | |||
| added = Jan 18th, 2016 | |||
| script_version = 0.23 | |||
}} | |||
}} | |||
The following snippet is taken from [[Canvas Snippets]], it can be copied/pasted into the [[Nasal Console]] for testing purposes. | The following snippet is taken from [[Canvas Snippets]], it can be copied/pasted into the [[Nasal Console]] for testing purposes. |