Bay 12 Games Forum

Please login or register.

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

Author Topic: does the # of items on map FPS?  (Read 1446 times)

Uninvited Guest

  • Bay Watcher
    • View Profile
does the # of items on map FPS?
« on: February 15, 2009, 01:00:21 am »

my FPS is shit. it's like 10/11 and it's no fun playing anymore.

when i start a game, it rips at 100fps.. but as the game goes on, it slows to a crawl. of course one of the things that changes is the population, but i've played games where i've capped it quite low and it still slows down over time.

i've built an atom smasher at the lowest Z-level to which my dwarfs will dump 30000 stones and other assorted junk to via a central garbage chute which spans from bottom to top.

anyone know if the number of items on the map has a signif effect? might save me some time. probably will take them a while at 10fps to clear this crap.
« Last Edit: February 16, 2009, 11:47:50 pm by Uninvited Guest »
Logged

Captain Mayday

  • Bay Watcher
  • A Special Kind of Terrible
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #1 on: February 15, 2009, 01:20:26 am »

It can. Also history logs, and pathfinding through corridors, and constructions.
Logged
Why not join us on IRC? irc.newnet.net #bay12games

Jim Groovester

  • Bay Watcher
  • 1P
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #2 on: February 15, 2009, 03:11:46 am »

Pathfinding and flowing liquids are probably greater contributors to slow fps than any amount of items you may have.
Logged
I understood nothing, contributed nothing, but still got to win, so good game everybody else.

Uninvited Guest

  • Bay Watcher
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #3 on: February 15, 2009, 03:25:16 am »

how do i help them pathfind?
Logged

Jim Groovester

  • Bay Watcher
  • 1P
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #4 on: February 15, 2009, 03:32:30 am »

Unfortunately, there's not much that can be done. Make sure you have wide hallways, make sure there aren't any traffic bottlenecks, designate high traffic zones inside and outside your fortress.

The idea behind high traffic zones is that it will spend less time calculating the route between the dwarf and his destination, as going down the high traffic zones will have the least pathing cost. Unfortunately, this does not prevent a dwarf from recalculating his route every time he comes across an obstacle, like another dwarf on the path, which is where the real FPS drain lies.
Logged
I understood nothing, contributed nothing, but still got to win, so good game everybody else.

PencilinHand

  • Bay Watcher
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #5 on: February 15, 2009, 03:39:10 am »

Pathfinding is the FPS killer.  But, having hoards of items and oodles of space doesn't help either.

EDIT: Also, setting G_FPS_CAP in the init.txt to 10 or better yet 5 will give you a nice FPS boost.
« Last Edit: February 15, 2009, 03:49:22 am by PencilinHand »
Logged

Ametsala

  • Bay Watcher
  • "needs chocolate to get through the working day"
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #6 on: February 15, 2009, 08:48:09 am »

EDIT: Also, setting G_FPS_CAP in the init.txt to 10 or better yet 5 will give you a nice FPS boost.

If your graphics card works fine with DF this doesn't matter. I tried lowering this to 5 and it didn't affect my FPS at all.

Worth a try though. At least you'll find out if it's the graphics that are killing your FPS.
Logged

Cheshire Cat

  • Bay Watcher
  • You Have Struck Turtle Shell!
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #7 on: February 15, 2009, 09:09:21 am »

find ways to kill all the pets.

this makes things immediately go really fast again, to a point.

efficient suggestion - pit with atom smasher activated by dwarf walking down hall to drop pet. bridge goes up, pet lands in hole. dwarf walks away, bridge goes down.

more fun suggestion - a really deep hole, or a really tall tower. or a combination of both. bits of kitten bounce multiple z levels and can go a long way. careful of miasma.

also, any large scale projects which move water/magma around kill fps dead. especially waterfalls of any kind. its fun but in a big fort it sucks.

seal any unused exploratory mining tunnels and stuff. im pretty sure just a locked door cuts areas out of being investigated by the pathfinding AI.

turning off temperature and weather can help.

a very small starting area helps a lot. smaller the better. on an old computer consider the nanofortress tool for a 1 by 1 fort. you can also set a population cap in the init files to limit the total number of dwarves you can get.

bottom line - dwarf fort is not that well optimised, and inevitably for me all my forts reach a point where things get so big and there are so many things running around that even my fairly respecable computer cannot deliver the silky smooth speed it did right after the initial embark. tis the price we pay for having only one guy doing all the work, who dedicates most of his energy into giving us a constant stream of awesome new gameplay elements rather then carefuly streamlining every last bit of code.

you can search around for more tips on optimization on the forums, there are lots more things to do depending on your system.
Logged

BurnedToast

  • Bay Watcher
  • Personal Text
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #8 on: February 16, 2009, 02:36:41 am »

Yes, masses of items can slow your game down. On my old computer (which was pretty slow) I gained a noticeable chunk of FPS (don't remember how much offhand) by dumping many thousands of stones (10,000+), tons of unused seeds (and the bags they were in) a small mountain of goblin siege garbage laying around and other various worthlessness.

Of interest, I also gained a noticable bit of FPS by dropping a cage stuffed with 100+ animals into the chasm (didn't want to bother butchering them) which was surprising. Caged creatures eat much less cpu then wandering ones but it seems they still take up a noticeable bit.

However, I'd say if you are at 10 fps it's probably not going to make that much of a difference to be worth the time taken. By all means dump the stuff if you are willing to run the fort anyway, but don't expect it to go back to 100 (or even 50 or 25) just from dumping.
Logged
An ambush! curse all friends of nature!

ZeroGravitas

  • Bay Watcher
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #9 on: February 16, 2009, 02:52:04 am »

Of interest, I also gained a noticable bit of FPS by dropping a cage stuffed with 100+ animals into the chasm (didn't want to bother butchering them) which was surprising. Caged creatures eat much less cpu then wandering ones but it seems they still take up a noticeable bit.

I think this is something to do with the unit list. When you hit a certain number of  units, the game just loses a massive amount of speed.
Logged

galmud

  • Bay Watcher
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #10 on: February 16, 2009, 07:11:29 am »

So even caged animals chew on my precious fps? Hmm I usually just cage all animals to avoid needless pathfinding and end up with lots and lots of quadrupeds behind bars. Need to put my butchers to better use :)
Logged

Phazer

  • Bay Watcher
  • This song is creepy.
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #11 on: February 16, 2009, 07:55:40 am »

Of interest, I also gained a noticable bit of FPS by dropping a cage stuffed with 100+ animals into the chasm (didn't want to bother butchering them) which was surprising. Caged creatures eat much less cpu then wandering ones but it seems they still take up a noticeable bit.

I think this is something to do with the unit list. When you hit a certain number of  units, the game just loses a massive amount of speed.
Well it could be those TONS of pages with Deceased, you should be able to remove them.
Logged
Dragon: My plan is foolproof! Those foolish dwarves cannot resist walking near lava! If I hop in, then they won't know what hit them! I'll just- AH! OH GOD! I WASTED MY LIFE!

ZeroGravitas

  • Bay Watcher
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #12 on: February 16, 2009, 02:29:12 pm »

Of interest, I also gained a noticable bit of FPS by dropping a cage stuffed with 100+ animals into the chasm (didn't want to bother butchering them) which was surprising. Caged creatures eat much less cpu then wandering ones but it seems they still take up a noticeable bit.

I think this is something to do with the unit list. When you hit a certain number of  units, the game just loses a massive amount of speed.
Well it could be those TONS of pages with Deceased, you should be able to remove them.

oh god please tell me how.

i have several soldiers with hundreds of zombie mountain goat kills alone. not to mention years upon years of ambushes and sieges, an opened HFS, and fort of 120 dwarves with a few dozen of its own dead.

edit: also, OP, could you PLEASE edit thread title to "does the  # of items on map AFFECT fps?" it's sort of making my eyes bleed.
« Last Edit: February 16, 2009, 02:51:20 pm by ZeroGravitas »
Logged

Savok

  • Bay Watcher
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #13 on: February 16, 2009, 03:57:16 pm »

No. The number of items on the map does not effect FPS in any way. That would be entirely silly.

I mean really. The things that cause FPS to exist are ENTIRELY DIFFERENT from the number of items on the map.

Although, the number of items on the map can affect FPS, but that's not what you asked.
Logged
So sayeth the Wiki Loremaster!

Vengo

  • Bay Watcher
    • View Profile
Re: does the # of items on map effect FPS?
« Reply #14 on: February 16, 2009, 04:47:59 pm »

All aboard the grammar-nazi-bandwagon!
Logged
Pages: [1] 2