Bay 12 Games Forum

Please login or register.

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

Author Topic: Generalized Stone  (Read 3360 times)

Jeoshua

  • Bay Watcher
  • God help me, I think I may be addicted to modding.
    • View Profile
Re: Generalized Stone
« Reply #15 on: May 05, 2012, 06:02:12 pm »

ab9rf: I never claimed to have any science.  I was saying that I do NOT have science but have seen it at work.  So yeah I agree but it's entirely besides the point.  Reguardless the original idea I was attempting to argue against was that fwere stone drop types would lead to better FPS, and that of course cannot be the case since, if lowering the mineral types has some affect before mining out those stones, having fewer results from a calculation that has NOT been run yet cannot possibly have ANY effect of increasing FPS.

Not science.  Common sense.



That would be pretty good science, if he tested in in identical conditions in identical locations on identical worlds, and perhaps repeated it a few times. Once probably isn't enough, especially if it was on different types of embark areas.

Seeded Perfect World created map, exact same settings, same year, same embark tile, same embark profile, nothing else changed but the rock/soil/mineral types... the ground looked a touch different but the overall form was nearly identical.

The test wasn't "rigorous" or repeated, but the world was close enough in generation that the name of the civ I embarked as and the volcano in the tile was named the same.

At any rate, the difference was there... but minimal at best.  And didn't stop the framerate from dropping below 30 fps when I dug into the volcano and spilled it's magma into a caisson.

It is because of that that I conclude that fewer drop types of stone from the same amount of minerals wouldn't cause any appreciable effect.  It's not tested because it cannot be tested, therefore is an unfalsifiable hypothesis.  However, it is nonetheless my hypothesis and I don't particularly care how the science works out because it makes complete sense.

I could hypothesize that, tommorow, the sun will rise.  If I don't test it, it doesn't change anything about what happens tommorow.  It just makes sense to me that it will happen that way.



I've made FPS improving mods for a few different games.  Overall what generally works for any game is fewer objects taking up memory, less stuff in RAM, less detail on 3d meshes, smaller textures, and the like.  What all these share is that anything which is defined within the game must by necessity take up either space or processor time.  Since the minerals in the original suggestion are still defined, they are taking up either space or time.  In DF's case, it would be space in the RAWS, which is both disk and RAM space, and processor time in loading them.

In fact, having extra calculations to determine if the inorganic being mined had a specific type being dropped might very well cause more calculations to be performed when mining, although it's unlikely to be something that's even measurable unless one were stress-testing with 1000 Legendary Dwarf Miners at the same time (ie. Supremely Unlikely)

It would be a nice feature to have be OPTIONAL to have stones with specific drop types.  Generalizing the game seems like an ineffectual response to a problem that isn't caused here (namely the FPS issues).  That's all in pathfinding.  But you're right in that modders and even Toady, himself, could find uses for these variable drops.



TL;DR I do not believe this will affect your frame rate in any way.  It may be simpler and lead to a "faster" game for the players' decision making process, however.  Green stone, Grey stone, if it's all the same stuff it doesn't really matter.  It's rather unlike Dwarf Fortress to make anything less complicated than it needs to be, however.
« Last Edit: May 05, 2012, 06:21:38 pm by Jeoshua »
Logged
I like fortresses because they are still underground.

Silverionmox

  • Bay Watcher
    • View Profile
Re: Generalized Stone
« Reply #16 on: May 05, 2012, 07:28:33 pm »

If we just have the ability to define what specific object(s) a mined out square drops (like the results of reactions), we could do whatever we wanted with it. Eg. a % chance to drop a fossil, or the silly route and mine out omelettes from eggstone and bacon from pigstone.
Logged
Dwarf Fortress cured my savescumming.

Morwaul

  • Bay Watcher
  • ..............boo
    • View Profile
Re: Generalized Stone
« Reply #17 on: May 05, 2012, 09:08:01 pm »

I tried doing that test on 4 maps just now using Master Work.  All settings set as close to Vanilla as possible using 2 maps with Simple Soil, Stones, and Minerals On, 2 off.  Same world, exact same embark location, no pets, etc. etc.  With all 7 dwarves standing around the wagon for the entire season the FPS would vary from 900fps down to 400fps and everywhere in between on all 4 maps for no apparent reason.  I though it might be animals moving around but at one point I got a swarm of demon rats.  There had to be around 50 of the things running everywhere.  In a deliberate attempt to confuse me the fps jumped up to the 800fps and stayed up there until the rats left at which time it dropped down to around 600fps then went bouncing all over the place again.  It would appear that whatever contributes to fps is to variable to accurately test.  Maybe if there was some kind of logging program that did 1sec samples and then gave an average but I doubt this would find anything either.

Anyway, this I do know, using Masterwork in a for with 116 dwarves and a slew of pets I am running 90fps.  With Vanilla and Genesis I would have been down around 50 or 60fps already.  Not sure what is giving the boost but it is wonderful.  Wish we could find the magic thing and run 100fps with a full fort.
Logged

Jeoshua

  • Bay Watcher
  • God help me, I think I may be addicted to modding.
    • View Profile
Re: Generalized Stone
« Reply #18 on: May 05, 2012, 10:18:55 pm »

There are a lot of factors at work in the FPS of Masterwork, mostly all stemming from a reduction of types across the board.  Be it trees or minerals or even leather types.  The actual data, you're right, is very variable but the overall effect is certainly that it does end up running much faster because there is less detail to keep track of.
Logged
I like fortresses because they are still underground.

Silverionmox

  • Bay Watcher
    • View Profile
Re: Generalized Stone
« Reply #19 on: May 10, 2012, 08:36:19 am »

This Buildingblog post reminded me that glass mountains are pretty cool without being silly. That requires us to put any material in a stone layer, and make that stone layer drop appropriate objects (raw glass in this case).
Logged
Dwarf Fortress cured my savescumming.
Pages: 1 [2]