Bay 12 Games Forum

Please login or register.

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

Author Topic: CORE FORTRESS  (Read 3968 times)

Im_Sparks

  • Bay Watcher
  • Half man. Half machine. All messiah.
    • View Profile
CORE FORTRESS
« on: June 29, 2009, 05:00:58 pm »

A quick topic, should be off the front page in an hour.

Does dwarf fortress run on a single core processor or multiple core processor?
If it's single core, that would explain the lagmammoth.
Logged
Well treat me like the disease like the rats and the fleas, A-ha-ha! A-ha-ha!
Well treat me like the sea oh so salty and mean, A-ha-ha! A-ha-ha!
Let's shake hands if you want but soon both hands are gone, A-ha-ha!
Cut me down like a tree like the lumber or weeds, well discard who you please like the leaves off a tree. Drag me out of the sea and then teach me to breath. Give me forced health till I wish death on myself. Ah! Ha! Ha!
March on! March on! March on! March on! MARCH ON!

Rysith

  • Bay Watcher
    • View Profile
Re: CORE FORTRESS
« Reply #1 on: June 29, 2009, 05:13:51 pm »

Yes, it's single core.
Logged
Lanternwebs: a community fort
Try my orc mod!
The OP deserves the violent Dwarven equivalent of the Nobel Peace Prize.

Im_Sparks

  • Bay Watcher
  • Half man. Half machine. All messiah.
    • View Profile
Re: CORE FORTRESS
« Reply #2 on: June 29, 2009, 05:16:30 pm »

Yes, it's single core.

That blows. Majorly. It has so much potential with dual core, or more core systems!

MORE CORE!
Logged
Well treat me like the disease like the rats and the fleas, A-ha-ha! A-ha-ha!
Well treat me like the sea oh so salty and mean, A-ha-ha! A-ha-ha!
Let's shake hands if you want but soon both hands are gone, A-ha-ha!
Cut me down like a tree like the lumber or weeds, well discard who you please like the leaves off a tree. Drag me out of the sea and then teach me to breath. Give me forced health till I wish death on myself. Ah! Ha! Ha!
March on! March on! March on! March on! MARCH ON!

Fieari

  • Bay Watcher
    • View Profile
Re: CORE FORTRESS
« Reply #3 on: June 30, 2009, 07:45:07 pm »

This topic comes up repeatedly.  Every time it does, it spawns a multi-page thread of flaming doom.  Please, let's not do this again.

Summary: Multithreading is not easy, is even less easy when you don't start work on it from the beginning, and Toady has no skill in how to do it.  The graphics portion of the game is slowly becomming multithreaded by Baughn though, so you'll have a little bit at least.  Eventually.  When he's able to get it to work.
Logged

Sir Pseudonymous

  • Bay Watcher
    • View Profile
Re: CORE FORTRESS
« Reply #4 on: June 30, 2009, 11:28:25 pm »

Except multithreading *is* easy. Every time I read an article talking about multithreading, or read materials about multithreading in a given language, they make a point of talking about how hard it is, how many pitfalls there are, etc. But, it's not hard to write a program keeping those things in mind. It's different, so I suppose any perceived difficulty comes from being set in a single-threaded mindset, but it is by no means hard in and of itself.

That said, I'd imagine trying to adapt a program, especially something like DF, to use multiple threads successfully would be an ungodly bitch, and would amount to a complete rewrite.
Logged
I'm all for eating the heart of your enemies to gain their courage though.

Slappy Moose

  • Bay Watcher
    • View Profile
Re: CORE FORTRESS
« Reply #5 on: July 01, 2009, 12:02:50 am »

That said, I'd imagine trying to adapt a program, especially something like DF, to use multiple threads successfully would be an ungodly bitch, and would amount to a complete rewrite.
Well that's the problem right there.

Multithreading from the beginning = easy.
Multithreading halfway into developement = FFFFFFFFFFFFFFFFFFFUCK.
Logged
Zaneg Thazor: Armok Reincarnate Story http://www.bay12games.com/forum/index.php?topic=19291.msg196691#msg196691

[Healthcare Update Thread] Personally, I can't wait for doctors to get possessed and start surgically attaching axes to champion soldier's arms.

Im_Sparks

  • Bay Watcher
  • Half man. Half machine. All messiah.
    • View Profile
Re: CORE FORTRESS
« Reply #6 on: July 01, 2009, 12:43:12 pm »

That said, I'd imagine trying to adapt a program, especially something like DF, to use multiple threads successfully would be an ungodly bitch, and would amount to a complete rewrite.
Well that's the problem right there.

Multithreading from the beginning = easy.
Multithreading halfway into developement = FFFFFFFFFFFFFFFFFFFUCK.

I believe Toady, using his godly temperance and endurance, will get around to it someday. Rewriting the entire fortress as we know it. The question is just when.
Logged
Well treat me like the disease like the rats and the fleas, A-ha-ha! A-ha-ha!
Well treat me like the sea oh so salty and mean, A-ha-ha! A-ha-ha!
Let's shake hands if you want but soon both hands are gone, A-ha-ha!
Cut me down like a tree like the lumber or weeds, well discard who you please like the leaves off a tree. Drag me out of the sea and then teach me to breath. Give me forced health till I wish death on myself. Ah! Ha! Ha!
March on! March on! March on! March on! MARCH ON!

Untelligent

  • Bay Watcher
  • I eat flesh!
    • View Profile
Re: CORE FORTRESS
« Reply #7 on: July 01, 2009, 04:34:01 pm »

After he's done with all the important stuff, most likely.
Logged
The World Without Knifebear — A much safer world indeed.
regardless, the slime shooter will be completed, come hell or high water, which are both entirely plausible setbacks at this point.

PTTG??

  • Bay Watcher
  • Kringrus! Babak crulurg tingra!
    • View Profile
    • http://www.nowherepublishing.com
Re: CORE FORTRESS
« Reply #8 on: July 01, 2009, 06:12:59 pm »

As nice as the Important Stuff is, I can't help but worry that the more he codes now, the more will be in the way when he decides to multithread it.

Of course, Polycore machines could still go the way of the beta tape if some new processor system turns up, such as optical.
Logged
A thousand million pool balls made from precious metals, covered in beef stock.

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: CORE FORTRESS
« Reply #9 on: July 01, 2009, 08:53:20 pm »

A long as there computing capacity is finite, people will want more of it.
There will within the foreseeable future always be a ultimate limit to how much faster you can make a single core my making adding more stuff to it, due to the speed of light if nothing else.
therefore, until FTL quantum computing or something is invented, multiple cores will always make a comeback.
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

ephrion

  • Bay Watcher
    • View Profile
Re: CORE FORTRESS
« Reply #10 on: July 02, 2009, 09:40:25 am »

A long as there computing capacity is finite, people will want more of it.
There will within the foreseeable future always be a ultimate limit to how much faster you can make a single core my making adding more stuff to it, due to the speed of light if nothing else.
therefore, until FTL quantum computing or something is invented, multiple cores will always make a comeback.

I don't think multiple cores will ever become outdated.  No matter how fast a single core can get, it will always be cheaper and easier to put two of them in a box rather than making it twice as fast.
Logged

IndonesiaWarMinister

  • Bay Watcher
    • View Profile
Re: CORE FORTRESS
« Reply #11 on: July 02, 2009, 09:46:22 am »

A long as there computing capacity is finite, people will want more of it.
There will within the foreseeable future always be a ultimate limit to how much faster you can make a single core my making adding more stuff to it, due to the speed of light if nothing else.
therefore, until FTL quantum computing or something is invented, multiple cores will always make a comeback.

I don't think multiple cores will ever become outdated.  No matter how fast a single core can get, it will always be cheaper and easier to put two of them in a box rather than making it twice as fast.
Until we hit mugen
Logged

Angellus

  • Guest
Re: CORE FORTRESS
« Reply #12 on: July 02, 2009, 12:35:08 pm »

And that, my dear friends. Is the first and most important wishlist number one of Dwarf Fortress 2.0


Now we just have to wait for 3009 to get to it...
If only we could get a full def-crew for toady to work with  :)
Logged

Michael

  • Bay Watcher
    • View Profile
Re: CORE FORTRESS
« Reply #13 on: July 02, 2009, 11:57:02 pm »

Except multithreading *is* easy. Every time I read an article talking about multithreading, or read materials about multithreading in a given language, they make a point of talking about how hard it is, how many pitfalls there are, etc. But, it's not hard to write a program keeping those things in mind. It's different, so I suppose any perceived difficulty comes from being set in a single-threaded mindset, but it is by no means hard in and of itself.

The problem is that multithreaded programs are inherently nondeterministic.  Depending on the relative speed of execution of individual threads, entirely different logical paths can be taken.  This means it is far easier for a bug to go unnoticed, and when a bug is noticed it can be hard to reproduce.  Add to this the new bug class of forgetting to use semaphores when needed, and multithreading becomes a very sharp double-edge sword.

If you are a sufficiently elite programmer to write code that works bug-free on its first compile, then multi-threaded code is no harder than synchronous code.  But if, like most people, you rely on the crutch of finding bugs by testing, it becomes very easy for serious bugs to slip out.


Note that rather than use threading (multiple processes sharing the same address space), it would be better if the code were split into separate full processes that communicate via the networking APIs.  This would be slower than true threading, but would avoid a lot of the potential for bugs.  Better yet, with this approach, it would be possible to divide the load across multiple computers.

Imagine, after the next dot-com bust, buying a used datacenter-in-a-shipping-container for cheap and then playing DF across a 200-node cluster....  ;)
Logged

ac31

  • Bay Watcher
  • [FIREBREATH]
    • View Profile
Re: CORE FORTRESS
« Reply #14 on: July 03, 2009, 02:21:30 am »


Imagine, after the next dot-com bust, buying a used datacenter-in-a-shipping-container for cheap and then playing DF across a 200-node cluster....  ;)

son, its stuff like this that keeps me sane
Logged
Just wondering if it would be possible (however unwise) to make demons a civilisation
I don't see any reason they couldn't be. What would happen if they breached the HFS?
Horrors! Annoying relatives in the deep!
Pages: [1] 2 3