Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: (Hopefully) a simple optim for temperature  (Read 518 times)

fanatic

  • Bay Watcher
    • View Profile
(Hopefully) a simple optim for temperature
« on: June 17, 2010, 10:01:17 am »

I do not know how it is done now, but I assume a temperature map is computed every frame. My point is it could be computed only every 10 or every 100 frames or at least 10 times less often than it is now. I cant think anyone would see the difference, but it would slash perf strain from temp by a lot!

And setting this as Init option would be great : like instead of
[TEMPERATURE:ON]  we could set [TEMPERATURE:100] to compute once every 100 frames.

What do you say?

EDIT : moved
« Last Edit: June 17, 2010, 10:03:53 am by fanatic »
Logged
fanatic cancels play DF : gone berzerk at framerate.                                                  x1000
------------------------
Pour magma first - ask questions later!

Rafal99

  • Bay Watcher
    • View Profile
Re: (Hopefully) a simple optim for temperature
« Reply #1 on: June 17, 2010, 11:34:10 am »

Nice idea. This could be applied to cave-ins too.
Logged
The spinning Tantrum Spiral strikes The Fortress in the meeting hall!
It explodes in gore!
The Fortress has been struck down.

Murphy

  • Bay Watcher
  • Lazy half-ass
    • View Profile
Re: (Hopefully) a simple optim for temperature
« Reply #2 on: June 17, 2010, 11:43:17 am »

And, to a certain extent, to liquids.
Logged

thijser

  • Bay Watcher
  • You to cut down a tree in order to make an axe!
    • View Profile
Re: (Hopefully) a simple optim for temperature
« Reply #3 on: June 17, 2010, 03:10:52 pm »

Yes I don't think this should be done for cave-ins and liquids but we should check how often it checks this now.
Logged
I'm not a native English speaker. Feel free to point out grammar/spelling mistakes. This way I can learn better English.