DXSCheckMem - A Memory Usage Info DLL for DXStudio Documents -- Section: DXStudio Goodies --
DXSCheckMem is a DLL I once wrote to track dynamic memory usage changes of DXStudio documents. It can be called on a per-frame basis from JS script, and adds only little overhead to the fps (if at all).
Calling the DLL from DXStudio script
The DLL exposes one function only. Preferably, place it in the doc's directory and add code like this to e.g. a 2D text object's onUpdate function:
var mem = 0;
function onUpdate()
{
mem = system.callDLL(system.folders.document+"dxs_chkmem.dll", "dxsChkMem", "");
mem = mem/1000;
object.text = "Memory usage reported by dll: " + mem.toFixed(2) + " KBytes";
} |
Screenshots
The download comes with a DXStudio demo doc, showing the current memory consumption, updated per frame.
History
| Version 1.0 |
10/9/2009 |
First release. |
Downloads
| Description |
File |
Filedate |
Size |
Remarks |
| DXSCheckMem 1.0 |
DXSCeckMem_1.0.zip |
10/9/2009 |
1.5 MB |
The dxs_chkmem.dll and mem_dll_test.dxstudio. |
|