30. Keep playback and resource use tidy
A GUI model viewer renders a real model in its own 3D viewport. A Video element decodes a real stream. Keep the number and size of these live displays sensible for the hardware your players use.
| Choice | Practical effect |
|---|---|
| A few appropriately sized model viewers | Easier to test and less demanding than a page full of large animated models. |
| A model prepared for display | Avoids unnecessary meshes, very large textures and movements that need extreme framing. |
| A clip sized for its display | A small monitor inside a GUI rarely needs a very large source movie. |
| Explicit video close cleanup | Stops unwanted playback instead of assuming hidden means stopped. |
| Separate saved data and temporary view state | Keeps the game’s meaning independent from the last drag or decoded frame. |
Save Project keeps the authored GUI and scripts. A temporary model orbit or current video frame is not automatically the permanent game record. Store meaningful story values, then reconstruct the intended display when opening or loading.
For video resume across a save/load, store the clip’s stable asset ID, a valid time and the intended playback state, then test restoration with that decoder. A stream reload or format change can invalidate an assumption about the current player.
Test the exported game as well as the editor. Use the target computer’s actual renderer, decoder package, display scale and input device before treating the interface as finished.
