Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 3 [4] 5

Author Topic: things to do to increase FPS  (Read 5981 times)

xmakina

  • Bay Watcher
  • in lapidem, Libertas
    • View Profile
    • Centre of the Back
Re: things to do to increase FPS
« Reply #45 on: January 28, 2011, 08:25:29 am »

Switch of invasions on the medium world. I read that that can be a huge contributor to FPS as the game has to analyse the whole world to see if anyone is invading you.

No, that's silly. I'm playing FOR the invasions.

Well, yeah, what else are you going to pour magma on? I would still be curious if this was an FPS hit or not though, if only so we can add/verify it in the wiki.
Logged
Anyone who doesn't have a lever causing global apocalypse isn't playing the game correctly
But it should be easy enough not to use them in a way you feel is dumb while letting other people have their hilarity.

Urist Imiknorris

  • Bay Watcher
  • In the flesh, on the phone and in your account...
    • View Profile
Re: things to do to increase FPS
« Reply #46 on: January 28, 2011, 08:26:41 am »

Well, yeah, what else are you going to pour magma on?

Did you actually ask this question? There's always something to pour magma on.
Logged
Quote from: LordSlowpoke
I don't know how it works. It does.
Quote from: Jim Groovester
YOU CANT NOT HAVE SUSPECTS IN A GAME OF MAFIA

ITS THE WHOLE POINT OF THE GAME
Quote from: Cheeetar
If Tiruin redirected the lynch, then this means that, and... the Illuminati! Of course!

Rask

  • Bay Watcher
    • View Profile
Re: things to do to increase FPS
« Reply #47 on: January 28, 2011, 08:32:59 am »

You have problems with ram or it is a glitchy embark maybe? Below is my testing:
2x2 embark on small world: 1200+ FPS
2x2 embark on large world: 1200+ FPS
2x2 embark on a particularly wierd large world: 300+ FPS

Additional tests:

new medium world: 180 FPS   (with much increased civilisation count)
new small world: 500 FPS (standard civilisation count)
new pocket world: 420 FPS (increased civ count)

Seems the FPS is both dependent on the number of civilisations in the world and on the size of the world.

Current theory: checking for invaders on larger worlds takes longer, even if there are more civilisations on the smaller world? Did you run your tests with invaders on or off?
Logged

rephikul

  • Bay Watcher
  • [CURIOUSBEAST_IDEA]
    • View Profile
Re: things to do to increase FPS
« Reply #48 on: January 28, 2011, 08:36:55 am »

You have problems with ram or it is a glitchy embark maybe? Below is my testing:
2x2 embark on small world: 1200+ FPS
2x2 embark on large world: 1200+ FPS
2x2 embark on a particularly wierd large world: 300+ FPS

Additional tests:

new medium world: 180 FPS   (with much increased civilisation count)
new small world: 500 FPS (standard civilisation count)
new pocket world: 420 FPS (increased civ count)

Seems the FPS is both dependent on the number of civilisations in the world and on the size of the world.

Current theory: checking for invaders on larger worlds takes longer, even if there are more civilisations on the smaller world? Did you run your tests with invaders on or off?
my large worlds have 200 civs and I play with invader on. I happen to have 6 worlds right now so lemme try all of them
Logged
Intensifying Mod v0.23 for 0.31.25. Paper tigers are white.
Prepacked Dwarf Fortress with Intensifying mod v.0.23, Phoebus graphics set, DFhack, Dwarf Therapist, Runesmith and a specialized custom worldgen param.

Rask

  • Bay Watcher
    • View Profile
Re: things to do to increase FPS
« Reply #49 on: January 28, 2011, 08:46:18 am »

Generated some new worlds, standardised to produce 5 civs and run for 2 years of history.
Embarks on 2x2 square with play now on flat terrain:

medium: around 300 FPS
small: around 750 FPS
pocket: 540+ FPS

For all of these, invaders were OFF.

The data for the small and pocket world looks pretty weird, though medium is slower, as expected. Possible explanation: small and pocket worlds are both so tiny that the number/type of civilisations (the remaining random factor, aside from embark terrain) becomes the relevant factor?
Logged

rephikul

  • Bay Watcher
  • [CURIOUSBEAST_IDEA]
    • View Profile
Re: things to do to increase FPS
« Reply #50 on: January 28, 2011, 09:33:06 am »

tested again with normal playing set up, "PLAY NOW" on warm biomes and fps capped and monitored

2x2 large, 400 fps with weighted average
2x2 pocket fluctuate alot, but it's around 1900-2000

So yes, world size DOES affect fps to some degree. It's not known whether this is a scaling issue, or it's a constant fps drain and shouldnt be worried about.
Logged
Intensifying Mod v0.23 for 0.31.25. Paper tigers are white.
Prepacked Dwarf Fortress with Intensifying mod v.0.23, Phoebus graphics set, DFhack, Dwarf Therapist, Runesmith and a specialized custom worldgen param.

shlorf

  • Bay Watcher
    • View Profile
Re: things to do to increase FPS
« Reply #51 on: January 28, 2011, 09:41:51 am »

If you could gen some worlds to allow 200 dwarfs on embark and get near identical embarks, you could check whether the civilization related calculation only eat a meaningful amount of fps in high fps scenarios or if it will still be a 4x difference with some more pathing calculations going on.
Logged

Girlinhat

  • Bay Watcher
  • [PREFSTRING:large ears]
    • View Profile
Re: things to do to increase FPS
« Reply #52 on: January 28, 2011, 09:42:57 am »

Keep in mind the local terrain and such.  If you're going to do an empirical test, you need empirical data.  This means weather and temperature off, as these can be unaccounted for variables, and consistent embarks.  I'd suggest a world designed to be 100% flat, with no volcanism and below freezing, and no caverns/HFS/etc.  Then, you can make various sized embarks on various sized worlds and compare data.  It may be required to add biomes to entities, so that they'll settle on glaciers, to run the test about civ counts, but this shouldn't actually interfere with any FPS counts.

Rask

  • Bay Watcher
    • View Profile
Re: things to do to increase FPS
« Reply #53 on: January 28, 2011, 09:58:41 am »

Sadly, creating such a world is beyond me.

In any case, recent imperfect experiments suggest that world size does indeed affect FPS significantly from medium world map sizes upwards.
Logged

daishi5

  • Bay Watcher
    • View Profile
Re: things to do to increase FPS
« Reply #54 on: January 28, 2011, 10:07:10 pm »

Doesn't DF do weather modeling, that might be a big part of why world size affects the FPS, bigger world has more weather to track? 
Logged

Mickey Blue

  • Bay Watcher
    • View Profile
Re: things to do to increase FPS
« Reply #55 on: January 29, 2011, 02:04:42 am »

Tried my own test (just one large and one small, would like to test with more..), both with similar setups, genned to 250 w/ only one cavern layer and everything else set as normal.  Tried to select two similar sites (both temperate heavy forests w/ no running water or magma).

Large FPS hovered around 200, small FPS hovered around 550... I'll have to test this more in the future with some more maps keeping track of number of civs and all that but it does appear from this and other tests that world size might have a notable effect on FPS.


Other things I have done are to limit myself to 2x2 map size, turn caverns to 1, try to avoid running liquids (such as rivers, etc), keep animals caged, use a dwarf cleaning system (I use the trench.. But the shower listed earlier sounds neat) and I use DFHack to get rid of blood if it gets too much (which I don't consider cheating as there really isn't another realistic way to get rid of blood/fluids from the map and I'm only doing so because of issues with FPS, not to give myself some unintended advantage in game.  If there were a more realistic way to clean fluids and/or if fluids didn't have such a damning effect on FPS then I wouldn't care).
Logged

blue emu

  • Bay Watcher
  • GroFAZ
    • View Profile
Re: things to do to increase FPS
« Reply #56 on: January 29, 2011, 05:51:06 pm »



 :-[
Logged
Never pet a burning dog.

Urist Imiknorris

  • Bay Watcher
  • In the flesh, on the phone and in your account...
    • View Profile
Re: things to do to increase FPS
« Reply #57 on: January 29, 2011, 07:20:22 pm »

I believe I have posted a screenshot of an identical event before...

EDIT: Not quite, but close:
Logged
Quote from: LordSlowpoke
I don't know how it works. It does.
Quote from: Jim Groovester
YOU CANT NOT HAVE SUSPECTS IN A GAME OF MAFIA

ITS THE WHOLE POINT OF THE GAME
Quote from: Cheeetar
If Tiruin redirected the lynch, then this means that, and... the Illuminati! Of course!

Buttery_Mess

  • Bay Watcher
  • 11x11
    • View Profile
Re: things to do to increase FPS
« Reply #58 on: January 30, 2011, 06:53:50 pm »

Large worlds certainly do reduce FPS noticeably. I presume that the reason for this was that a larger world will produce a significantly larger save file. I'm guessing that most of the save file (if not all) will be loaded into the RAM during play. Again, I'm guessing that DF also performs regular checks and small calculations on every tile of the game world, every civ, megabeasts and so on, for the purposes of creating history, weather patterns, politics and so on. I don't know how often it does this, but I do know that doubling the dimensions of a world quadruples the amount of data required to describe it and thus the length of time it takes to perform calculations and checks.

This is mostly guesswork, I don't know the finicky details of how the game works. All I know is, smaller maps with less stuff on them mean a faster game.
Logged
But .... It's so small!
It's not the size of the pick that counts... it's the size of the man with the pick.
Quote from: Toady One
Naturally, we'd like to make life miserable for everybody, randomly, but that'll take some doing.

abadidea

  • Bay Watcher
  • [IS_8BIT_PROGRAMMER]
    • View Profile
    • 0xabad1dea
Re: things to do to increase FPS
« Reply #59 on: January 30, 2011, 09:11:14 pm »

Large worlds certainly do reduce FPS noticeably. I presume that the reason for this was that a larger world will produce a significantly larger save file. I'm guessing that most of the save file (if not all) will be loaded into the RAM during play.

I run on Linux with no swap, so I can attest that it isn't a memory size problem, since nothing's getting paged out for me. I am guessing it's more with repeatedly traversing linked lists of other civilizations and what they are doing, and weather, and forgotten beasts roaming around.
Logged
ABadIdea likes bandfire opal, black opal, claro opal, crystal opal, fire opal, harlequin opal, jelly opal, levin opal, pinfire opal, precious fire opal, red flash opal, white opal, and microcline for its vibrant hue.

glory in the thunder, resplendent in the sky <-- I wrote a whole novel. There will be more.
Pages: 1 2 3 [4] 5