Author Topic: A switch to limit texture size of models  (Read 734 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
A switch to limit texture size of models
« on: 15 December 2013, 22:07:25 »
As I am working on my new techtree barillion I typically use big textures for the models ( typically 1024x1024 ). I think for slower hardware and with less gfx memory this can be a performance problem. What about a switch in the settings that limits the texture size to a max of ( 256/512/1024 )? While loading the models  MegaGlest should respect the max texture size and resize too big textures before using them. ( We must take care that this does not make trouble with showing screenshots and so on )
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: A switch to limit texture size of models
« Reply #1 on: 16 December 2013, 02:08:41 »
I also think the engine should be able to control it, and throttle it based on VRAM usage.
Egypt Remastered!

Proof: Owner of glest@mail.com

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: A switch to limit texture size of models
« Reply #2 on: 16 December 2013, 04:15:22 »
I agree too. However how would this apply when there are textures of different resolutions?
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: A switch to limit texture size of models
« Reply #3 on: 16 December 2013, 08:59:05 »
I'm in favour of this, but I would suggest a slight tweak, more in line with 'optimisation level' compiler options.

But I just don't think a whole rich set of individual options is terribly useful to the average player.  A slider would be far better IMO.

If the user has a quality slider, we can tweak how we interpret and set the 'advanced' options like texture scaling (they'd need to be downscaled on load) and eventually mesh complexity and shader complexity etc.  Even setting the shadow mode and number of lights and all the other settings we currently expose could better be hidden behind the slider.

I guess there can always be an 'advanced' button to expose these settings in the UI, but hide them by default.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: A switch to limit texture size of models
« Reply #4 on: 16 December 2013, 14:31:49 »
A general "Quality slider" is a good idea but I think offtopic here as this thread is related to exactly this texture size feature.
Pleasse open an extra Feature request to discuss/create this. 
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

 

anything