Code to make game faster

BigThing

New member
I was just wandering, is there a piece of code or a modification you can do to the config file of a building/object (eg. station, sign).

I am aware that on certain splines you can change the bendy to 0 and on flat splines you can add "uncached_alphas 1".

I have done this but is there one for a building?
 
Hi BigThing

For the config, no. However any building that uses alpha blending can, in theory, have a line added to the .texture.txt file of those textures to force them to have 'masked' alpha channels.

The line is:
AlphaHint=masked


You will need to test on a 'per building' basis, as not all alpha channels will work well when masked automatically.

In native mode this can also be used to remove the 'glassy edge' effect (since masked alpha channels can be used in native mode).
 
First, you will need to open the file for edit.

Now, locate any .texture.txt files that reference one of the texture (.tga/.bmp/.jpg or similar) files twice in it's name. Also any .texture.txt file that has a line in it for an 'alpha'.

Now, open these .texture.txt files and then simply add the line "AlphaHint=masked" to the bottom. The .texture.txt file is a simple text file that can be opened by notepad and similar.

Now save, and test in game. Much like bendy and uncached alpha's, this one requires some testing to find what can and can't be used with it (simply removing that line will revert that texture back to it's blended form).

Please let me know if you need any further assistance.
 
Back
Top