Large dungeon performance issues

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
GoldenShadowGS
Posts: 168
Joined: Thu Oct 30, 2014 1:56 am

Large dungeon performance issues

Post by GoldenShadowGS »

I have a large dungeon underground with height levels from -7 floors to +4 ceilings. There are lots of things going on and at certain points my frame rate is tanking to under 30fps. Whats the biggest resource hogs that I need to watch out for? is it water? too many monsters, too much world geometry being rendered?
User avatar
Skuggasveinn
Posts: 562
Joined: Wed Sep 26, 2012 5:28 pm

Re: Large dungeon performance issues

Post by Skuggasveinn »

The engine is fairly good at pushing polygons, what you need to look out for are dynamic lights (lanters, torches and other dynamic light sources including particles that emit light), water and water reflections.
Link to all my LoG 2 assets on Nexus.
Link to all my LoG 1 assets on Nexus.
GoldenShadowGS
Posts: 168
Joined: Thu Oct 30, 2014 1:56 am

Re: Large dungeon performance issues

Post by GoldenShadowGS »

Skuggasveinn wrote:The engine is fairly good at pushing polygons, what you need to look out for are dynamic lights (lanters, torches and other dynamic light sources including particles that emit light), water and water reflections.
Great suggestion. I cleaned up some of my lights and got back a lot of fps. I guess I went a bit too overboard lighting everything.
User avatar
gambit37
Posts: 218
Joined: Fri Mar 02, 2012 3:40 pm

Re: Large dungeon performance issues

Post by gambit37 »

I was wondering about this too. Are there any "rules" on the maximum number of lights that should be viewed at the same time? Or is it just a case of experimentation and testing on a variety of different spec machines?
GoldenShadowGS
Posts: 168
Joined: Thu Oct 30, 2014 1:56 am

Re: Large dungeon performance issues

Post by GoldenShadowGS »

It seems for my dungeon tiled level. The torch holders are much more expensive to render than the pillar lanterns. It seems like the wall torches cast dynamic shadows while the lanterns don't.
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: Large dungeon performance issues

Post by msyblade »

Though we haven't tried to push this engine to its limits, in LoG1 modding the golden rule was generally: 2 visible lights : fine, 3 visible lights : pushing it, 4 or more visible lights : bad idea
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Post Reply