Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Loading Time
Re: Loading Time [message #453931 is a reply to message #453913] Sat, 10 September 2011 06:38 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
iRANian wrote on Sat, 10 September 2011 06:31

Why would it need to calculate the .thu files every time after starting Windows? What do the .thu files contain, by the way? I've always wondered that.


Texture Height Units

vloktboky wrote on Sat, 02 September 2006 22:18


The THU file is a propriatary file format used by Westwood in Renegade. They contain collected data of texture content that is contained within the MIX file of a map. This data includes the image resolution, DDS DXT compression format, etc.
I speculate that the reason why Westwood did this was to save time during the loading/rendering portion of the engine when you need to get these textures for drawing the different portions of the maps. For example, pretty much all of the Westwood maps contain the textures used on the terrain pieces (like the rock walls on Canyon, etc) inside the MIX files. Rather than having to open up the MIX file, extract the data, and load it up everytime you are exposed to a mesh object that uses that terrain file, they stored it in these external files. This would speed up the process a bit which I'm sure gave them a performance boost back then.

The problem is, the engine does not recreate these files once they have been created. So if you update the textures stored in the MIX files (or if you put a different image file with the same name in your Data folder) and it uses a different resolution, the game will not know that and will attempt to draw the texture using the resolution it stored in the THU file.




[Updated on: Sat, 10 September 2011 06:38]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Which servers already updated to scripts 4.0?
Next Topic: Config Issue and Reticle Oddness
Goto Forum:
  


Current Time: Thu Sep 12 17:17:02 MST 2024

Total time taken to generate the page: 0.00917 seconds