System.doCompact

Function/Meaning

Compact memory

Type
Systemclassmethod of
Syntax
doCompact(level=clAll)
Arguments
level

Specify the level. Specifying clIdle does the same thing as compactification, which occurs when the system is idle (the system is relatively inactive).
The current version features his TJS2 garbage collection.

  • If you specify clDeactivate, it does the same compactification that occurs when Kirikiri becomes inactive (when other applications become active). The current version clears the temporary image buffer for layer operations, the layer cache, the XP3 archive segment (storage fragment) cache, and the automatic search path cache.
  • If you specify clMinimize, it does the same compactification that occurs when Kirikiri is minimized. In the current version, the drawing character cache and image cache are cleared.
  • If clAll is specified, all of the above compactifications will be performed.

The level of compactification increases in the order of clIdle Specifying a higher level also results in the compactification that is done at the lower levels.
For example, running clDeactivate also does what clIdle does.
If the argument is omitted, clAll is assumed to be specified.

Return value
None (void)
Explanation

Makes the memory compact.
Compactification is the process of reducing memory usage by releasing unused memory and memory for various caches.
Kirikiri does this automatically, so you don't usually have to worry too much, but you can use this method if you want to force it to be done on the program side.