Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Water Optimization  (Read 561 times)

Snoopicus

  • Bay Watcher
    • View Profile
    • Kung Fu Kingdom - An RTS with Kung Fu!
Water Optimization
« on: June 23, 2008, 01:44:06 pm »

Whenever I play on maps with large bodies of running water, framerate drops a ton. Through only observation (can't see the code) it appears like all water is being considered moving and tracked at all times, even if the square itself stays 7/7 the whole game. If this is the case, by only tracking the EDGES of water (I.E., where is flows out and in) framerate can be increased without losing any of the simulation properties.

Logged
Snoopicus: What is the kill radius of lava heat?
Snugglybear: I''ve seen it, I think, kill dudes one level above it. But the guy was falling into it at the time, as a dwarven sacrifice. So it''s hard to say.

Derakon

  • Bay Watcher
    • View Profile
Re: Water Optimization
« Reply #1 on: June 23, 2008, 01:55:09 pm »

This is done already. 7/7s surrounded by 7/7s are marked as static.
Logged
Jetblade - an open-source Metroid/Castlevania game with procedurally-generated levels

Snoopicus

  • Bay Watcher
    • View Profile
    • Kung Fu Kingdom - An RTS with Kung Fu!
Re: Water Optimization
« Reply #2 on: June 23, 2008, 01:56:28 pm »

Thanks for the FYI. Drop is probably just on large rivers where the edge is long and constantly in flux.
Logged
Snoopicus: What is the kill radius of lava heat?
Snugglybear: I''ve seen it, I think, kill dudes one level above it. But the guy was falling into it at the time, as a dwarven sacrifice. So it''s hard to say.

Neoskel

  • Bay Watcher
  • Read or the owl will eat you.
    • View Profile
Re: Water Optimization
« Reply #3 on: June 23, 2008, 03:14:26 pm »

You sure your lag isn't from the legions of carp and hippos in the rivers?
Logged
Urist Mcsurvivalist has been accosted by edible vermin lately.

Goblins: The fourth iron ore.

Draco18s

  • Bay Watcher
    • View Profile
Re: Water Optimization
« Reply #4 on: June 23, 2008, 03:57:51 pm »

Logged