Okay, so, what are the implications of this for those who are not quite technologically inept but fairly close to it?
I'm currently using a dual core 2.00GHz, with 4GB of RAM. The computer I recently ordered will have a 2.4GHz quad core with 8GB RAM.
How much impact will those two point alone have on the performance of DF, and what could average joe change if he wants to increase efficiency in a way which will not risk everything going FUBAR due to mistakes?
The major killer of fort FPS for me has not been pathfinding, catsplosions, or even liquids, but in fact clutter! Noticing the resource usage of DF over the course of a fort's 10 years, massive stone stockpiling (and crafts, and food, and waste, etc.) always crippled the system irrecoverably.
My money is on the magma sea draining into HFS.That can happen? :o
Hmmm you mentioned a memory lea somewhere. Could you nail it down?
Oh no, I understand entirely. It's just that some tweaks only make a difference at high FPS, and some only at low. Sadly, FPS is the only benchmarking available that's relevent to DF. Synthetic benchmarks can be DRASTICALLY inaccurate on the grounds that they behave nothing like the real application.Although it's good that you're taking the measures you mentioned, it's very easy to convert between FPS and milliseconds per frame (ms/f): (1/FPS)*1000.
*snip*
Interesting, thanks for the !!SCIENCE!! It shows some difference between Intel and AMD, and Hyperthreaded vs. Non-Hyperthreaded. Hyperthreads sure complexify the fark out of these calculations because of the wierd way they work.
However the main area I tested was heavily loaded embarks and older forts with 100+ dwarves. Can you do some tests when you reach around 50 dwarves, too?
Give It A Break Already:
Although there does not seem to be a memory leak, DF gets a fair boost in FPS if you just save and exit (the client completely) every so often. How frequently this makes a difference depends on your system's speed, as our P4 and Celeron test systems didn't benefit until many hours of play, while the Phenom II I use personally benefits after around 3-4 hours. I'm not sure why this is. Take it as you will. The benefit is small, and proportional to how long since you closed it. It increased FPS from 3-4 FPS to 15-30 FPS after I restarted from a 72-hour long nonstop Dwarfathon. (There was also a lot of unattended Fun). Readings were taken before and after the restart to ensure it wasn't from a sudden drop in pathfinding on dead dwarves or something trapped somewhere.
Give It A Break Already:
Although there does not seem to be a memory leak, DF gets a fair boost in FPS if you just save and exit (the client completely) every so often. How frequently this makes a difference depends on your system's speed, as our P4 and Celeron test systems didn't benefit until many hours of play, while the Phenom II I use personally benefits after around 3-4 hours. I'm not sure why this is. Take it as you will. The benefit is small, and proportional to how long since you closed it. It increased FPS from 3-4 FPS to 15-30 FPS after I restarted from a 72-hour long nonstop Dwarfathon. (There was also a lot of unattended Fun). Readings were taken before and after the restart to ensure it wasn't from a sudden drop in pathfinding on dead dwarves or something trapped somewhere.
Go Flush Your Cold Buffer In You SCSI DASD:I suspect I can explain this as Windows putting some programs to sleep and into the page file, which reduces their competition for CPU resources as well. Perhaps with the page file disabled it doesn't sleep processes like this?
Strangely, we tried enabling and disabling Virtual Memory/Swapfile/Pagefile/Disk Cache and the effects it had on DF. I found that it is actually best to *enable* virtual memory and allocate a fair amount. I assume this is the result of reducing the amount of clutter in the RAM and thus shaving off a bit more RAM Competition. The effect was surprisingly substantial at a fairly steady 7-8% FPS improvement. This has been the single best result short of CPU and RAM overclocking.
It's generally best to keep your pagefile enabled in Windows 7. Stuff that doesn't need to be put into memory generally won't be. But if you don't have a pagefile enabled, it's putting a lot of crap in memory that really doesn't need to be there. It's a lot smarter in that respect than XP, and even Vista.
Vigilant is right.no he isnt. you both totaly did´nt understood how virtual memory is working, when data will be stored in virtual memory and when not.
Vista/7 actually have a very smart system for caching stuff in memory.Now I dont want to nitpick, but that smart caching system on my Vista64 was caching half downloaded xGBs file into RAM. I can only guess, but his crystal ball assumed, that it will speed things up if uTorrent will have this in RAM right after the start, as it was used by uTorrent for several windows sessions... :-/
Regarding clutter causing lag:
Does this only extend to loose clutter like barrels or stones? Or does clutter also include the blocks that have been built into megaprojects? Do immobile objects like that still constitute a drain on RAM?
Vigilant is correct, at least in terms of Windows XP. Windows XP has relatively poor memory management. It will leave a bunch of empty memory and use the pagefile when it isn't really necessary. Windows Vista and 7 are far better in that respect. Vista/7 actually have a very smart system for caching stuff in memory. Disabling the pagefile is an archaic concept that only ever applied to older operating systems, and even then it had some drawbacks. (Certain apps would crash and burn.) Anyone still recommending it for Vista and 7 are just holding on to an old habit.
But the best thing is to simply try it for yourself. It's not like it's going to hurt anything to turn it off, then back on if you don't see any benefit.
Regarding clutter causing lag:
Does this only extend to loose clutter like barrels or stones? Or does clutter also include the blocks that have been built into megaprojects? Do immobile objects like that still constitute a drain on RAM?
It seems to count everything, including massive amounts of layers (water, blood, etc.)
Some testing in arena mode after a massive 5,000 vs. 5,000 killed framerate too after they painted the town red.
Vigilant is correct, at least in terms of Windows XP. Windows XP has relatively poor memory management. It will leave a bunch of empty memory and use the pagefile when it isn't really necessary. Windows Vista and 7 are far better in that respect. Vista/7 actually have a very smart system for caching stuff in memory. Disabling the pagefile is an archaic concept that only ever applied to older operating systems, and even then it had some drawbacks. (Certain apps would crash and burn.) Anyone still recommending it for Vista and 7 are just holding on to an old habit.
But the best thing is to simply try it for yourself. It's not like it's going to hurt anything to turn it off, then back on if you don't see any benefit.
Vigilant uses XP ;)
However still, why would caching stuff in the page file ever be more useful even with smarter management? Even with a solid state drive you're not going to get anywhere near the access speeds being as fast as RAM. Virtual memory does seem like a great hardware solution for making more efficient use of resources... but I can't see how it improves performance, it looks like it just reduces the impact of having an insufficient amount of memory in your machine. I guess i could see it maybe extending RAM life, but that's about it.
Regarding clutter causing lag:
Does this only extend to loose clutter like barrels or stones? Or does clutter also include the blocks that have been built into megaprojects? Do immobile objects like that still constitute a drain on RAM?
It seems to count everything, including massive amounts of layers (water, blood, etc.)
Some testing in arena mode after a massive 5,000 vs. 5,000 killed framerate too after they painted the town red.
So in other words, Dwarf Fortress is guaranteed to grind in a halt if you in any way attempt to enjoy the game :(
And you haven't explained it, which makes you either a troll, inattentive or unwilling to admit that they're right for some reason.what makes you think you may tell me to go or leave anywhere? and what makes you think that its my duty to explain anything?
So leave, explain yourself or explain yourself some more, respectively.
And you haven't explained it, which makes you either a troll, inattentive or unwilling to admit that they're right for some reason.what makes you think you may tell me to go or leave anywhere? and what makes you think that its my duty to explain anything?
So leave, explain yourself or explain yourself some more, respectively.
however... i realy dont think one should try to tell the working principles of operation systems within a gaming forum.
1: there are *tons* of real good background informations regarding these techniques, even on wikipedia most informations are correct.
2: its obvious that some informations have been read -and misread - already... i dont belive telling it all agian would do the trick.
And you haven't explained it, which makes you either a troll, inattentive or unwilling to admit that they're right for some reason.what makes you think you may tell me to go or leave anywhere? and what makes you think that its my duty to explain anything?
So leave, explain yourself or explain yourself some more, respectively.
however... i realy dont think one should try to tell the working principles of operation systems within a gaming forum.
1: there are *tons* of real good background informations regarding these techniques, even on wikipedia most informations are correct.
2: its obvious that some informations have been read -and misread - already... i dont belive telling it all agian would do the trick.
Disclaimer: I know nothing of CS.
That said, it seems like this issue is relatively easy to address. Is there a reason to count constructed blocks and stone? Is there a reason to query the status of objects not in use as frequently as objects currently being used? Coverings that are easier to clean or that eventually decay would help.
If I had one wish for the future of DF it would be framerate improvement. Lag has killed more forts than gobbos ever could. It would be great to have succession games that could last more than 6-8 turns before becoming unplayable.
do i? pointing you onto bad but popular mistakes dosent make this thread worse. leaving them uncommented would ;)
I have the right to suggest for you to go or to leave because you're making the environment of the thread worse.
Download URL isn't working. Firefox keeps giving me timeout errors on it.
If you've got a low amount of memory i guess use it, but if you've got an abundance it's better to make the most use of it possible, and XP at the very least DOES not always make full use of your memory. If it used up every bit of your memory then switched to virtual, i'd be happy, but it doesn't. And i've noticed the difference in performance since i've turned it off, particularly on using Eclipse for big projects and Civ4.