Company of Heroes: Eastern Front

Author Topic: Alpha and blacken non used texture parts  (Read 1726 times)

Offline Pfuscher

  • Beta Testers
  • Ingenery
  • *
  • Posts: 11
    • View Profile
Alpha and blacken non used texture parts
« on: November 11, 2013, 05:18:12 PM »
EF has dozens of textures where the not used part isn't blackened nor alphad out.
You could save a lot in mod size and performance that way.


Offline Blackbishop

  • Administrator
  • Poster of the Soviet Union
  • *
  • Posts: 12053
  • Community Manager, Programmer and Kicker
    • View Profile
Re: Alpha and blacken non used texture parts
« Reply #1 on: November 11, 2013, 06:24:29 PM »
Nope. Alpha'ing a mesh doesn't increase the performance because the mesh and it's polygons are still present, but are just "invisible" (i.e. without textures); we need to disable each mesh with OE in order to save performance.

Ostheer infantry has only a couple of troops with this feature, so most of them still need the change.
Mors Indecepta

Might controls everything, and without strength you cannot protect anything. Let alone yourself...

Offline Pfuscher

  • Beta Testers
  • Ingenery
  • *
  • Posts: 11
    • View Profile
Re: Alpha and blacken non used texture parts
« Reply #2 on: November 11, 2013, 07:06:01 PM »
Ok, I thought it would help as the filesize gets up to 40% smaller, doesnt he load the whole thing?

Offline Blackbishop

  • Administrator
  • Poster of the Soviet Union
  • *
  • Posts: 12053
  • Community Manager, Programmer and Kicker
    • View Profile
Re: Alpha and blacken non used texture parts
« Reply #3 on: November 11, 2013, 08:43:40 PM »
Well, you are right, it can save some performance, but hiding the meshes saves more performance rather than alpha'ing them. We should do both, but we can do one of them, not to mention both :).
Mors Indecepta

Might controls everything, and without strength you cannot protect anything. Let alone yourself...