Jump to content
Hoppah

Guide: Tips on game performance

Recommended Posts

Although Emergency 4 was released in 2006 and is about 8 years old, certain alterations to the game using mods may cause performance issues or CTD's, even on brand new and fast systems. Despite its age, Emergency 4 isn't a game that is optimized for high end graphics. Certain newer games such as GTA IV, have functionalities which try to increase the performance (like draw distance). Emergency 4 lacks a lot of functionality to 'automatically' improve performance realtime when you are playing. It was never intented to have functionalities like that, because of the simplicity of the original game.

While it's advised to always update video drivers and to have an external graphics card to play this game, it is very likely that a modification itself can still cause a wide range of different issues, no matter how good your computer system is. Especially computers with AMD hardware seem to have more issues trying to run modifications. The random crashes look like memory leaks, which may be a flaw in the game's engine, but there's nothing we can do about that. In my opinion, a lot can be done to prevent crashes and issues by changing the modifications itself. Based on my own experience, and with MikeyPI's help, this guide will give you some useful insight how to deal with performance in modifications.

I've divided the tips into 7 subjects and sorted them on priority.

1. Textures

Textures are rendered dynamically in this game, so when you zoom in it gets more sharper for a better focus. That process, especially with bigger textures takes more of your computer system. Some texture formats (common formats in Emergency 4 are dds, png, bmp, tga and jpg) also require more resources than others. While bmp files have a great quality, they are larger in size and problably require more resources to load. Take into consideration that a 2,048 by 2,048 (4.16 million pixels) pixel sized texture is 16 times (!) larger than a 512 by 512 (0.26 million pixels) pixel sized texture. Thats a big difference. I strongly advice mod-creaters to seriously consider using lower resolution textures whenever thats possible. For example, a 1,024 by 1,024 (1.05 million pixels) pixel sized texture for a person model is redudant. A texture that's 4 times smaller (ie 512 by 512 pixels) will almost always suffice for a person texture. A texture with that size still contains plenty of details and you will NOT notice the difference in the game, because the game is played from a birds-eye view.
 
2. Lights
A lot of people like to add a lot of lights to vehicles because of realism. There is, however, a risk of lag since lights are updated realtime on every vehicle (when a vehicle moves, the lights move instantly too). Especially radiation (light glow) may cause an FPS drop, because they're always transparent and therefore, the game needs to render more. Especially at night, radiation can cause severe lags. There's been a couple of reports on the forum about this. The same thing generally applies to polygon lights.

 

3. Particles

Each effect, like smoke and fire, consists of particles. Although particles are in fact 2D effects, a wide range of settings and effects are used to make it look 3D. Depending on the quality, rate and other settings, particles can cause severe lag. The forest fire mission in the Los Angeles Mod by Hoppah is a great example of how bad particles may cause performance issues, so be careful when using (new) particles.

 

 

 

4. Models

 

 

Models aren't that bad on performance, since they have nothing to do with physics/collisions ingame and they are all precached before you start playing. That said, take into consideration that Emergency 4 is not really optimized to deal with highly detailed models. 20,000 polygons for a vehicle is alot for Emergency 4. It's proven that big models or big textures take longer to load (see below). In case you have weaker hardware, try to load up a high polygon model in the editor and you will notice a slight lag. When you're a modeller, take into consideration that a lot of details on a vehicle (like doorhandles) can be added to the texture too and you will barely notice a difference in the game. A single highly detailed model will not take a hit on any computer system, but do not forget that that model is part of a whole modification. It adds up very very fast if a 20,000 polygon object is placed 20 times ingame. Also, the more single textures a model is assigned to, the longer it takes to load each independent texture.

 

 

 

 

5. Scripts
Timers (for missionscripts) and scripts that are repeated in a loop (like the siren and water supply scripts) may cause a drop in FPS depending on the total frequency they are run. 

 

 

6. Mod Loading times

 

 

In my opinion, it is a wrong thought that the total loading times are only caused by the size of the entire modification. A mod precashes and loads all playable units (both vehicles and personnel) which are assigned to a unique 'UNIT ID' via the 'Units' folder upon loading a modification. Therefore, all prototypes and the assigned models of those playable units are precached. The logfile keeps track of this process. Using less detailed objects will decrease loading times. Note: the game also checks the scripts for icons and certain scripting errors when loading a mod.

 

 

 

 

 

 

7. Map Loading times

 

 

It may a very long time to load a map sometimes. The reason behind this, is that the game loads all objects that are placed on the map. The logfile keeps track of this process. Using less detailed objects will decrease loading times. Note: when loading a mission, the game also precaches the missionscript or builds a more efficient version (pscript format) in case the missionscript got changed.

 

 

 

 

 

Conclusions

 

It aint hard to draw your conclusions based on what's written above. Emergency 4 is a game that is not optimized for highly detailed stuff. High end computers will probably run all modifications fine, but it's likely the game will CTD after a while. Possibly due to memory leaks and/or the absence of an external graphics card. AMD hardware seems to have more issues than other hardware brands. It's therefore advised to take the tips above into consideration if you want to build a modification that will work fine for most players, especially those regarding textures and lights. A smooth modification will greatly improve the image/reputation of the modification and the team behind it. You cannot simply expect that people should just get better, brand new hardware, while the original game runs fine on eight year old systems. Emergency 4 is not first person shooter, going for as much realism as possible by building highly detailed models/textures is not necessary. With this guide and tips, I hope I have given you some insight regarding performance for this game. In most cases simply common sense and logical reasoning applies to deal with possible performance issues.

 

Recommandations

 

 

none yet

 

Hoppah

 

 

 

 

 

Link to comment
Share on other sites

I know it has been quite some time since you've posted this Hoppah but I am very glad I found this post...

I just recently bought a new laptop specifically to play this game. This was before I saw this post, and realized what was said about AMD...(my laptop has the Radeon R7 series, and the latest driver for said card)

As far as performance goes, generally I have absolutely no complaints. The game looks good, runs good, and then I get into the incredible frustration of my game lagging because of the lights. Several mods the cause: Harbor City, Brooklyn, Ocean City, Riverside, even the LA Mod 4x4.

Every unit in the Brooklyn and Manhattan MODS lighting causes terrible lag, once I turn the lights off problem solved. But let's be realistic here...it takes some of the fun away. In MODS like Northview Creekside, and the Riverside, it seems to be only the battalion chief cars or EMS supervisors. There is a small amount of lag here and there with some of the fire apparatus but not too terrible... however when multiple units come into view, for example a large structure fire...I am back to the "this lag is awful mind as well stop playing because it's not even fun to play now" mindset kicks in.

In a way I'm slightly confused, for example...LA 4x4 I send a squad and a chase car on all EMS calls, the chase car from station 2 has many lights on it, with tons of radiation, yet I get minimal lag. Then I pop a fire call, send 2 engines and a ladder that have much less radiation and I get aton of lag. Same with Harbor City. I saw in another posting to go into the editor and remove radiation from the lights and I should be fine. I went ahead and did so for a select few units in Harbor City (Battalion 1, Engine 1, Ladder 1, and Squad 1), sent the units out, with still no success and about the same amount of lag.

Has there been a way to improve all of this that I have missed? Is there anything that can be done?

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...