User Tools

Site Tools


hpl2:amnesia:performance

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hpl2:amnesia:performance [2019/01/22 15:39]
darkfire
hpl2:amnesia:performance [2019/01/22 15:45]
darkfire [Make use of global fog]
Line 19: Line 19:
 You can activate the global fog in the level settings (Edit > Level settings > Fog) in the Level Editor. The global fog can be used to prevent the game from rendering objects beyond the ending point of the fog if culling is enabled for the global fog. For indoors it should be safe to allow for a longer end point, but use what you find best for your story. You can activate the global fog in the level settings (Edit > Level settings > Fog) in the Level Editor. The global fog can be used to prevent the game from rendering objects beyond the ending point of the fog if culling is enabled for the global fog. For indoors it should be safe to allow for a longer end point, but use what you find best for your story.
  
-The fog distance can be set so that the fog is never seen by the player, but it still culls a lot of the map. For example, if the longest corridor of the map is 12 meters long, setting the fog distance to 14 should work. Just in case the player sees it, however, set the fog's colour to black; this way, it will look like darkness.+The fog distance can be set so that the fog is never seen by the player, but it still culls a lot of the map. For example, if the longest corridor of the map is 12 meters long, setting the fog distance to 14 should work. Just in case the player sees it, however, set the fog's colour to black. This way, it will look like darkness.
  
 ===== Reduce particle effects ===== ===== Reduce particle effects =====
Line 27: Line 27:
 ===== Use fading on particle effects ===== ===== Use fading on particle effects =====
  
-Having a big number of particle effects is doable in HPL2, but they need to fade at distance (note: if you are already using fog culling, this probably won't help much). When placing a particle in the map, set it's fade distance so that the player can't see it when they are too far. Depending on your map, you might want to fade in a bigger particle in the place of few small ones - this way something will be visible from distance, but still will increase performance.+Having a big number of particle effects is doable in HPL2, but they need to fade them at distance (note: if you are already using fog culling, this probably won't help much). When placing a particle in the map, set it's fade distance so that the player can't see it when they are too far. Depending on your map, you might want to fade in a bigger particle in the place of few small ones - this way something will be visible from distance, but still will increase performance.
  
 The more particles there are in the map, the more this method will be effective. From the author'​s experience, this allows the map to have a couple hundred particles in the map without any performance drop. The more particles there are in the map, the more this method will be effective. From the author'​s experience, this allows the map to have a couple hundred particles in the map without any performance drop.
hpl2/amnesia/performance.txt ยท Last modified: 2019/01/22 15:45 by darkfire