Hi,
Please find attached a sample project that I used for a quick benchmark.
I manually created a simple behavior (meBeh01) that I duplicate n times at runtime. This behavior has one init VSL task starting an infinite loop, either using schematic task or VSL function call.
BehaviorGenerator dynamically duplicates this behavior n times.
Please find attached a graph of the results I have on my laptop inside authoring environment.
To roughly sum it up: hundreds of behavior instances is definitely fine, thousands of behavior instances should be OK, tens of thousands of behavior instances might becomes critical at some point :o). All that of course highly depends on targeted platform, tasks content (here I perform an infinite loop on each instance, which is probably not so common).
You may want to modify the sample so that it gets closer to you use case (add members to check memory footprint, add specific processing inside tasks for perf benchmarking, use event handlers instead of infinite loops, ..).
By the way, here are a partial list of some "little details that matters" for an efficient benchmarking:
- Compile your scripts in release mode (default mode is debug !)
- Disable Live Update so that property view is not updated (File / Preferences / Engines / GUIApp / Property View Live Update ).
- Disable display of Dynamic actors inside Project Editor, this may drop frame rate when dealing with huge number of actors. The is done by pressing the (very, yes) little button under Project Editor orange tab.
- Disable "Sync to screen" mode to have a free refresh rate independant from screen refresh rate (Project options / Engine / Render / CreateOptions / Syncronize To Screen). This is the only way to have a usable FPS feedback for high frame rates.
- If you really want to bench runtime perf, do the test inside a player, not inside Authoring. Studio console and profiling tools are all available at runtime !
Hope it helps making your mind,
A/
Attachments
-
Results.jpg (47.3 KB, 9 downloads) 3 months old -
DynamicActorBenchmarkProject.zip (10.1 KB, 2 downloads) 3 months old
WARNING: Files uploaded in the forums are not monitored by 3DVIA and therefore might contain content that is malicious or offensive. Download at your own risk