Dump modes

From Bennu Wiki
Revision as of 04:04, 11 July 2008 by Sandman (talk | contribs) (→‎Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Dump modes are used to define the type of dump, needed to be applied to the screen, by assigning them to the global variable dump_type. This influences when and if graphics of processes are drawn to the screen.


Constant - Value - Description
PARTIAL_DUMP - 0 - Only graphics of updated (changed) processes will be drawn (default).
COMPLETE_DUMP - 1 - Graphics of all processes will be drawn, whether they've changed or not.


It is clear that completely drawing all processes every frame is more expensive then updating only some of them. This mode can be useful still, because partially drawing processes can cause probably unwanted effects in some situations, mostly in combination with a certain restore_modes. However, if you experience no such thing, you can use the partial drawing.

PARTIAL_DUMP is useful if there is relatively not much changing to processes and when there are a lot of processes that don't need updating. COMPLETE_DUMP is useful if most processes need updating.

Be certain restore_type is compatible with the dump_type set, because some combinations can cause probably unwanted effects.

See also