Rastko Stanojevic (3D Artist) works on the intro video for Miner Wars 2081. I don’t want to spoil too much so here’s is just a small preview – not revealing the details!
Filip Novy (3D Artist) has prepared these great scenes – just by configuring in-game prefab modules. It took him only 15 minutes. Every Miner Wars player will be able to do the same thing very soon!
Next release of Miner Wars is coming this month – we are stabilizing and finishing as many features as possible. Not really adding new stuff, just making existing features stable and polished.
We’ve also been taking care of a few garbage collection issues: For those who don’t know, if you allocate new object, depending on your situation in heap, it may trigger garbage collector to free up unused memory – which can show up as a small halt in execution. The game would just stop for couple of milliseconds.
Our goal is to avoid these situations, so we have very simple rules:
Programmers sometimes incidentally use code that internally allocates new objects. For example:
I can’t track all these places manually by analyzing the source code, so I use “Memory Profiling” tools.
Here’s list of those we use:
What I usually do is launch the profiler, let it attach MinerWars.exe, and look for new allocations. If that’s not possible then I make a memory screenshot, wait 1 minute, make another memory screenshot, and let the profiler compare results. Final report shows the list of objects created between the first and second memory snapshots. Next, track down the code where those allocations were executed and let know the programmer about it.
The lucky thing is that we don’t need to do performance profiling, the game is running really well. But just for curiosity I did the analysis, and to my surprise the most expensive method we use is the calculation of sound occlusions. That’s our own method which calculates “visibility” between a sound and the player. The result is then used to set DSP/RPC parameters to the sound – so those who are behind an obstacle are more “occluded” to the sound.