Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 3 4 [5] 6 7 ... 11

Author Topic: Is the constant simulation of the game world worth getting 1/5th the FPS?  (Read 24770 times)

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #60 on: September 16, 2014, 03:10:12 pm »

Dwarf Fortress uses a modified A* search algorithm for pathfinding.
Right, the question was how often it uses the modified A* algorithm, though. Once every tick? Or once at the start of the path and then not again unless hitting an obstacle or predicting an obstacle etc.

Once at the start of the move-to-place job.  You can see this by locking a door that a dwarf needs to walk through, and noting how the dwarf will still path right up to that door, then flash a question mark for a bit.

There is also some world-level caching of valid routes — DFHack exposes it as path_tag and path_cost in each map_block, and in world.pathfinder.boundary_heap.

Also DFHack has a script that shows a minecart's current cached path, and another that shows a creature's current cached path.
Logged

GavJ

  • Bay Watcher
    • View Profile
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #61 on: September 16, 2014, 04:08:46 pm »

Oh yeah! The question mark. Of course...
Logged
Cauliflower Labs – Geologically realistic world generator devblog

Dwarf fortress in 50 words: You start with seven alcoholic, manic-depressive dwarves. You build a fortress in the wilderness where EVERYTHING tries to kill you, including your own dwarves. Usually, your chief imports are immigrants, beer, and optimism. Your chief exports are misery, limestone violins, forest fires, elf tallow soap, and carved kitten bone.

Orange Wizard

  • Bay Watcher
  • mou ii yo
    • View Profile
    • S M U G
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #62 on: September 16, 2014, 04:33:26 pm »

Not sure if anyone's heard, but according to the devlog Toady's done some optimising and he's doubled the FPS of his test save.
Logged
Please don't shitpost, it lowers the quality of discourse
Hard science is like a sword, and soft science is like fear. You can use both to equally powerful results, but even if your opponent disbelieve your stabs, they will still die.

malvado

  • Bay Watcher
    • View Profile
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #63 on: September 16, 2014, 04:36:28 pm »

Aye I noticed his update.
In my case that means I could probably go from 30fps to 60fps currently.
More optimizations will be needed to get the game back to the same numbers I had in 34.x , but it's definitely a good update.
Logged

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #64 on: September 16, 2014, 05:41:54 pm »

I generally get to 10-20 after a few years, so 20-40 would be a god send.
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.

Kryxx

  • Bay Watcher
    • View Profile
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #65 on: September 17, 2014, 11:01:38 am »



With what type of processor?  also what embark size?  I'm curious as the my fort grows I'd like a rough gauge.

Logged

Robsoie

  • Bay Watcher
  • Urist McAngry
    • View Profile
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #66 on: September 17, 2014, 12:20:39 pm »

I hope those optimisations will have some impact in adventure mode too, some sites (especially goblin ones) are very or sometime just unplayable slow in current versions
Logged

Z1000000m

  • Bay Watcher
    • View Profile
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #67 on: September 17, 2014, 12:56:19 pm »



With what type of processor?  also what embark size?  I'm curious as the my fort grows I'd like a rough gauge.

It probably went from 1 fps to 2...
Logged

MDFification

  • Bay Watcher
  • Hammerer at Law
    • View Profile
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #68 on: September 17, 2014, 04:06:33 pm »



With what type of processor?  also what embark size?  I'm curious as the my fort grows I'd like a rough gauge.

He didn't say... but he did confirm that the optimizations will affect any fort, and specifically helps forts with larger populations. So it should be a fairly universal boost.
There's a lot of negativity in this thread I notice. I feel like some people are regretting playing on a toaster. (my laptop is 4 years old, in case I seem like I'm being an entitled jerk)
Logged

Kryxx

  • Bay Watcher
    • View Profile
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #69 on: September 17, 2014, 10:52:35 pm »



Part of the issue is playing on a laptop.   Some of the early I-5's are not true quad cores.  It's a duo core each with hyper threading.  So you have to watch it.   

My laptop is this way, thus your not gaining that much of an advantage. But I don't play any games on my laptop.  It's for sitting out on the back porch watching the dogs and horses and surfing the net.

Then there are the heat issues with laptops in which many of them downclock themselves as they get hotter.   

I have an I-5 -3470(S).  Which is a 3.2ghz with a 3.6 turbo if it needs it, but  I rarely see the processor get over 50% even when saving or running with 60 dwarves (my max so far). Fps is still over 100 at that point.   I've been running 5x5 embarks. 

I was trying to gauge what people with 30-60fps are running for processors to understand where my limitation will be.   

Would be awesome to write an app to push the math co-processing over to the GPU since DF doesn't use it.  Would boost performance greatly.
Logged

Streeter

  • Bay Watcher
  • Playing D&D Counts as Partying
    • View Profile
    • https://www.google.com/
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #70 on: September 18, 2014, 05:35:25 am »

Would be awesome to write an app to push the math co-processing over to the GPU since DF doesn't use it.  Would boost performance greatly.


Oh most definitely. I keep seeing people pestering Toady with suggestions along the lines of "MOAR CORES". Do these people even realise that concurrency is difficult and bug-prone, and at times not worth the effort? I'll answer my own question: No, they don't. It's the first suggestion for improving perf that you'll hear from non-devs. :P


Stream processing, on the other hand? That would be a huge boon. Similarly difficult, but much more worth the effort than using a second thread. Many physics calculations would simply fly, and world-gen could become a breeze. I'm guessing that pathfinding would also work well for GPGPU (it's just a search over sparse graph data structures, right?). Though it would take a large change in the algorithm used, I'd imagine.

That said, keep in mind we're still in alpha. Don't expect Toady to rip out code and experiment with stuff like this anytime soon. I don't know how much things like water dynamics/temperature/pathing etc. rely on ticks in the main loop. :P
Logged
"To ensure quality standards, this space is hereby declared a Signature-Free Zone (SFZ). All intruding signatures, real or made-up, will be shot on sight."

rhoxa

  • Bay Watcher
    • View Profile
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #71 on: September 18, 2014, 07:51:34 am »

FPS has been the biggest issue for me so far.  I've stopped playing three forts now, all sometime around 2-3 years, because my FPS struggles to get above 25.  I'm using an i7 2600k at 4.5GHz, 8GB of RAM, SSD, GTX580.  Embarking 4x4 or 3x3.  I set up traffic areas, I blocked off the caverns, I tried turning off weather, there is no waterfall, I used HFhack to clean everything, and I'm still having poor FPS.  My map size is usually medium and history is medium too.  New forts stay at 100 then decrease SHARPLY when I hit that 2-3 year range.  Once I fixed it temporarily when I found a dwarf stuck in a tree, and another time by just closing the caverns off with locked doors, but it always manages to keep getting lower.

I didn't get a chance to try the newest build yet, but I will report back when I do.  Fingers crossed.

Logged

NullForceOmega

  • Bay Watcher
  • But, really, it's divine. Divinely tiresome.
    • View Profile
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #72 on: September 18, 2014, 12:22:54 pm »

What speed is your RAM and what speed of RAM is your MoBo designed for?  I run forts on an i5 at 2.8GHz, with 8GB as well and I have NEVER had FPS that low, even over 18 in-game years, and I run forts at full industry on 3x3-5x5 embarks.  I don't use burrows, traffic designations, I dig out entire z's for materials, create tens of thousands of items and I don't drop below 60 FPS EVER.
Logged
Grey morality is for people who wish to avoid retribution for misdeeds.

NullForceOmega is an immortal neanderthal who has been an amnesiac for the past 5000 years.

GavJ

  • Bay Watcher
    • View Profile
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #73 on: September 18, 2014, 12:57:59 pm »

What speed is your RAM and what speed of RAM is your MoBo designed for?  I run forts on an i5 at 2.8GHz, with 8GB as well and I have NEVER had FPS that low, even over 18 in-game years, and I run forts at full industry on 3x3-5x5 embarks.  I don't use burrows, traffic designations, I dig out entire z's for materials, create tens of thousands of items and I don't drop below 60 FPS EVER.
Youve run 18 year forts in 40.xx? Keep in mind it could be a new issue, if you're referring to forts in 34.xx
I've never gotten anything close to his FPS either with a similar computer, but I haven't yet gotten around to playing a whole 3 year fort with the new version.
Logged
Cauliflower Labs – Geologically realistic world generator devblog

Dwarf fortress in 50 words: You start with seven alcoholic, manic-depressive dwarves. You build a fortress in the wilderness where EVERYTHING tries to kill you, including your own dwarves. Usually, your chief imports are immigrants, beer, and optimism. Your chief exports are misery, limestone violins, forest fires, elf tallow soap, and carved kitten bone.

NullForceOmega

  • Bay Watcher
  • But, really, it's divine. Divinely tiresome.
    • View Profile
Re: Is the constant simulation of the game world worth getting 1/5th the FPS?
« Reply #74 on: September 18, 2014, 01:07:31 pm »

I've gotten to nine years in 40. so far, but my FPS holds very steady between 80 and 100 in those forts.
Logged
Grey morality is for people who wish to avoid retribution for misdeeds.

NullForceOmega is an immortal neanderthal who has been an amnesiac for the past 5000 years.
Pages: 1 ... 3 4 [5] 6 7 ... 11