Your donations keep RPGWatch running!
Box Art

Legend of Grimrock 2 - Performance Optimizations

by Myrthos, 2014-03-11 13:02:47

In an update on Legend of Grimrock 2, the performance optimizations they have been working on for the last few weeks, are discussed. If you are not a programmer, nerd or a geek, you might not find this too interesting....

Some might think that optimizing is boring and tedious because the work is very time consuming and nothing seems to happen to the game on the surface. To help with this I’ve turned opimizing into a sort of game for myself. Whatever I’m optimizing I first come up with some metric, usually a number whose value I can track and try to make it as small as possible. I set up a challenge for myself to see how low I can push that number. Some things are easy to measure like memory consumption of the process with Windows Task Manager or the time needed to process a single frame. But to really dig deep into performance issues it’s necessary to breakdown the measurements into smaller bits to get a better idea what to optimize. Therefore I built a performance profiler directly into the game that I can summon with a press of a button.

The profiler shows milliseconds and percentage of frame time spent in each subsystem of the game and various other statistics. To run at 60 frames per second the computer can spent up to about 16 milliseconds to process each frame, including updating the game world and rendering the view. The profiler also shows amount of temporary memory allocations (Malloc column) during the frame — more about that later.

 

Information about

Legend of Grimrock 2

SP/MP: Single-player
Setting: Fantasy
Genre: Dungeon Crawler
Platform: PC
Release: Released


Details