Bay 12 Games Forum

Please login or register.

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

Author Topic: Does Tree Litter Cause Lag? (And other FPS questions.)  (Read 2157 times)

omega_dwarf

  • Bay Watcher
  • Adequate Architect, Dabbling Modder
    • View Profile
Does Tree Litter Cause Lag? (And other FPS questions.)
« on: December 10, 2014, 09:32:12 pm »

I think I remember someone asking this before, but I don't recall if it ever got answered. I'd be quite happy to be pointed to an existing answer :3

I'm in a 2x2 embark with temperature off. There are trees everywhere, and as a consequence, apple leaves and apples and almonds and sand pears and...etc...littering the ground everywhere. Does that have an impact on calculations per second? I would have thought not with temperature turned off, but my fps is getting pretty bad with only 20 dwarves (most of whom attend parties all the time.)

It might be a large-ish world, but only 100 years of history. I've been in this embark for a while now, don't really want to abandon it. It should be playable for another year or two, but my megaproject won't be done by then. (A massive tower both aboveground and below, made with open-air quarries.)

This is DF 0.40.18.

Separate issue: DF uses 8% CPU. (Single-threading fml, but I know multi isn't coming any time soon.) Anyway, it should be able to use at least 12.5% because of my logical core setup. So is it possible that my memory is the bottleneck, and it's actually using all the CPU it needs? It's a pretty-much-new gaming laptop, so I would expect better than 60 FPS plugged in on high performance with 20 dwarves, 2x2 embark, only 2 caverns revealed, and temperature off.

As a last resort, if the game does become unplayable, is there anything in DFHack that allows you to transfer forts from one world/location to another world/location? I'm guessing not (since there would probably be a lot of problems with that), but it would be insanely useful, just to cut down on the history calculations if you bit off more than your computer can chew.

Rolan7

  • Bay Watcher
  • [GUE'VESA][BONECARN]
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #1 on: December 11, 2014, 01:25:48 am »

It sounds like you know more about hardware tech than I do, but it sounds to me like something's wrong.  My fort is getting 135 FPS (I uncapped it to test) with 59 citizens.

Intel Core i5-2410M @ 2.30GHz, 32bit.

Which is a bit odd, my old Thinkpad X40 with 1.5Ghz or something got up to about 300FPS when uncapped.  That was 40d16, though.  I suppose the new features cost a lot of CPU, or maybe I had less dwarves than I remember.
Logged
She/they
No justice: no peace.
Quote from: Fallen London, one Unthinkable Hope
This one didn't want to be who they was. On the Surface – it was a dull, unconsidered sadness. But everything changed. Which implied everything could change.

gunpowdertea

  • Bay Watcher
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #2 on: December 11, 2014, 04:53:53 am »

Yes, there was a discussion about three months ago, and the conclusion was more or less that the main bottleneck is the memory access. Ideally you'd want as much memory as "close" to the CPU as possible.

Edit: Oh, and yes, the tree litter does cause FPS issues it seems. Use dfhack to clean up the mess... Also: Pathing...
« Last Edit: December 11, 2014, 04:55:34 am by gunpowdertea »
Logged
I don't care. I have discovered that if you spawn elves this way, cats will chase them down and eat them.

omega_dwarf

  • Bay Watcher
  • Adequate Architect, Dabbling Modder
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #3 on: December 11, 2014, 11:18:43 am »

Yeah, I have an i7-4710, 2.5GHz (thank you, parents!), so something's up.

Oh wait, how many logical cores does your processor have, Rolan7? Since DF is single-threaded, the number of cores matters massively, which partially explains why my 2009 dual-core ran 0.34.11 just about as well as my 2014 quad-core (and possibly why your older one ran faster.) (Mine has 8 logical and 4 physical, which means theoretically DF should be able to use close to 25% CPU, but might be forced to 12.5% by some lame constraint.)

I'll try the DFHack solution and chop all the trees too, gunpowdertea. War with the elves would be interesting anyway :P

If I ever try/have money to, would I find instructions on how to improve the memory situation in the thread about the memory bottleneck?

And is disabling active history an option? (Pretty sure it's not in the raws, but sounds like something DFHack might be able to help.) Would culling unimportant historical figures (I noticed it's no longer defaulted to "yes" in 2014) help?

Thank you both!

Rolan7

  • Bay Watcher
  • [GUE'VESA][BONECARN]
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #4 on: December 11, 2014, 11:30:51 am »

I was using a Core Duo, probably with 2.2 or 2.4Ghz, which is about the same clockrate as my current quad core machine...  I guess that makes sense.  I used to run nano 1x1 fortresses on a 1.2Ghz low-voltage Pentium M, but I had major FPS issues with that of course.
Logged
She/they
No justice: no peace.
Quote from: Fallen London, one Unthinkable Hope
This one didn't want to be who they was. On the Surface – it was a dull, unconsidered sadness. But everything changed. Which implied everything could change.

Arkangel

  • Bay Watcher
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #5 on: December 11, 2014, 12:30:24 pm »

Oh, and yes, the tree litter does cause FPS issues it seems. Use dfhack to clean up the mess...

Can DFHack acutally clean up all the tree litter? Because the clean command doesn't touch fallen leaves and the like.
Logged

Slogo

  • Bay Watcher
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #6 on: December 11, 2014, 01:42:55 pm »

Tree litter, especially on a 2x2 embark shouldn't cause THAT much issue. I know my current fort is 2x2 heavily wooded (with fruit trees), rain 100% of the time, temp on, and I still get reasonable FPS up to 150 dwarves.

FPS issues are usually a bit of everything, but can you post some shots of your fortress? I'm guessing the big issue is pathing. Most likely problems with pathing from the quarry to the stone stockpiles and pathing from the stone or block stockpiles to the top/bottom of the tower where you are doing megaproject work.

omega_dwarf

  • Bay Watcher
  • Adequate Architect, Dabbling Modder
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #7 on: December 11, 2014, 02:48:05 pm »

I was thinking that too...but pathing shouldn't be too much of an issue. I think. I mean, I'm using minecarts to reduce hauling runs, and I was still getting about 60fps when most of my dwarves were partying. Unless the climbing mechanic makes them want to scale all the walls I'm building (I haven't seen anyone do it yet.) But still...only twenty dwarves. I can't imagine that pathfinding takes any more than twice as long as it used to.

What world size and history length do you use, Slogo?

Oh, edit: I'll post pics when I'm back to my computer.

Slogo

  • Bay Watcher
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #8 on: December 11, 2014, 03:24:58 pm »

Varying, but usually <250 years.

Maybe a silly question, but you haven't capped the FPS to 60 have you? What do you get on a fresh embark (i.e. 7 dwarves idly standing around a wagon)?

omega_dwarf

  • Bay Watcher
  • Adequate Architect, Dabbling Modder
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #9 on: December 11, 2014, 03:28:58 pm »

Not a silly question, but fresh embark is always 100, and that persists for maybe a year.

On another note, doesn't seem to be much hapenning in history either unless there's some massive unreported growth in historical figures ("The world is the same as ever" the last couple caravans.) Maybe legends mode can provide some answers.

smeeprocket

  • Bay Watcher
  • Collectivist Socialist Feminist Freeloader
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #10 on: December 11, 2014, 05:15:08 pm »

if you have a 64 bit OS you can up the game's accessible RAM from 2 to 4 with this:

http://www.techpowerup.com/forums/threads/large-address-aware.112556/
Logged
Steam Name: Ratpocalypse
Transpersons and intersex persons mod for Fortress mode of DF: http://dffd.wimbli.com/file.php?id=10204

Twitch: http://www.twitch.tv/princessslaughter/

"I can't wait to throw your corpse on to a jump pad and watch it take to the air like a child's imagination."

omega_dwarf

  • Bay Watcher
  • Adequate Architect, Dabbling Modder
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #11 on: December 11, 2014, 09:10:02 pm »

Hmm, I think I did that once and notice little difference, smeeprocket, but I can try again. That was in 0.34.11.

Here are the images of the fort:
imgur.com/gallery/OpNOP/

utunnels

  • Bay Watcher
  • Axedwarf
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #12 on: December 11, 2014, 09:16:19 pm »

Well tree litters, blood, vomit and other contaminants make little difference to me.
I mean, they may affect fps, but after using dfhack (clean all), fps doesn't get improved.

So they may have a thing or two to do with your fps, but they don't have major effects.
Logged
The troglodyte head shakes The Troglodyte around by the head, tearing apart the head's muscle!

Risen Asteshdakas, Ghostly Recruit has risen and is haunting the fortress!

omega_dwarf

  • Bay Watcher
  • Adequate Architect, Dabbling Modder
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #13 on: December 11, 2014, 10:10:59 pm »

That's been my experience too. So the other question remains: why the heck is a gaming computer producing this mediocre situation?

MDFification

  • Bay Watcher
  • Hammerer at Law
    • View Profile
Re: Does Tree Litter Cause Lag? (And other FPS questions.)
« Reply #14 on: December 11, 2014, 10:20:15 pm »

That's been my experience too. So the other question remains: why the heck is a gaming computer producing this mediocre situation?

DF doesn't utilize computing resources like most modern games do.
Logged
Pages: [1] 2