|
SceneCacheSize | ||
SceneCacheSize Size | ||
Parameters: Size = The Size of the scene buffer cache in bytes |
||
Returns: NONE | ||
SceneCacheSize allows you to change the size (amount of memory) used by scene buffer. FACTS: * Note: Please use great caution when changing the size of the scene cache, as PlayBasic assumes the scene cache is be big enough for any graphics rendering data you capture into it. So If you make it too small and your captures overflow it, PlayBASIC will either pop a runtime error or possibly crash ! Mini Tutorial: This example creates a camera, then resizes the scene buffer size from it's default of 460,000 bytes, to a much smaller 5000 bytes (5k) then captures some circles to the scene. As each circle is captured, it displays the current offset (amount of used space) in the scene buffer. Once everything is captured it draws the camera to display the scene.
In PlayBasic V1.28 this example would output the following text.
|
Related Info: | CaptureToScene | SceneMaxZdepth | SceneSortMethod : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |