Bay 12 Games Forum

Please login or register.

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

Author Topic: DF process is using more than one processor core somehow?  (Read 3034 times)

MuonDecay

  • Bay Watcher
  • Say hello to my little μ
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #15 on: November 08, 2008, 04:52:07 am »

I think a lot of these sorts of things should really wait until the game is mostly done.   Consider it like a cake that needs to be baked before you can frost it.

Aw, but I want to bake each layer of my cake in a different oven!  :P
Logged

FFLaguna

  • Bay Watcher
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #16 on: November 08, 2008, 09:38:42 am »

I remember reading that there was some small part of DF that actually is multithreaded, or something. I forget what it is, but if I remember correctly it shouldn't account for a full 10%... I think it had something to do with the rendering. Then again, I'm probably just imagining things.
You and Keiseth could be on to something here. As far as I'm aware, Direct3D doesn't cause inflated core usage, but perhaps OpenGL does? But you're right, 10% out of 25% of an almost top-of-the-line processor is a little over the top. But who knows? This has been a pretty good thread so far.
Logged

Dasqoot

  • Bay Watcher
  • He-wenching for the cause.
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #17 on: November 08, 2008, 01:13:26 pm »

If you use sysinternals process explorer instead of task manager, it'll give you a lot more details on this. Specifically you can check which variables are using the second processor. My guess would be the openGL, but who knows.
Logged

FFLaguna

  • Bay Watcher
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #18 on: November 08, 2008, 02:03:31 pm »

If you use sysinternals process explorer instead of task manager, it'll give you a lot more details on this. Specifically you can check which variables are using the second processor. My guess would be the openGL, but who knows.
I tried the program out. "kernel32.dll+0x11504" is adding an extra 7-8 percent of CPU time connected to Dwarf Fortress. My guess is that deals with the OpenGL display of Dwarf Fortress.

It's not certain, but I'm satisfied enough to go with that theory. Thanks for the suggestions, Dasqoot.
Logged

Tormy

  • Bay Watcher
  • I shall not pass?
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #19 on: November 08, 2008, 04:08:54 pm »

Q: DF process is using more than one processor core somehow?
A: Nope

I wasn't reading all of the replies in this topic, but it is 100% that DF is using 1 core only.
« Last Edit: November 08, 2008, 04:10:42 pm by Tormy »
Logged

FFLaguna

  • Bay Watcher
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #20 on: November 08, 2008, 05:10:18 pm »

Q: DF process is using more than one processor core somehow?
A: Nope

I wasn't reading all of the replies in this topic, but it is 100% that DF is using 1 core only.

Except for the part where you didn't read the topic, and in fact DF is causing more than one full core to be used.  ::)
Logged

Tormy

  • Bay Watcher
  • I shall not pass?
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #21 on: November 08, 2008, 05:43:00 pm »

Q: DF process is using more than one processor core somehow?
A: Nope

I wasn't reading all of the replies in this topic, but it is 100% that DF is using 1 core only.

Except for the part where you didn't read the topic, and in fact DF is causing more than one full core to be used.  ::)

Eh? I never noticed this on my dual core system, this is really weird. Either way I run DF on 1 core anyway, because that is the best.
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #22 on: November 08, 2008, 06:26:01 pm »

Or maybe your number is just incorrect.
Mine's reporting exactly 50% of my two cores.
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Thuellai

  • Bay Watcher
  • Nobody's business but the Turks
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #23 on: November 08, 2008, 07:05:56 pm »

Except he's analyzed the program and found another process attached to DF that was, in fact, using a second core.

Just the one, though, so I suspect it is, in fact, the OpenGL components.
Logged
When you're following an angel, does it mean you have to throw your body off a building?

"So kids, what story do you want me to read to you tonight?"
"Oooh!  Oooh!  Goldibeard and the The Rotting Corpses!"
~LegacyCWAL

Apoco

  • Bay Watcher
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #24 on: November 08, 2008, 09:23:51 pm »

Whats likely happening is that dwarf fortress is switching rapidly between multiple cores(it happens to me on my dual core) and as such it can end up causing the illusion that the single process is using more than an entire core. i'v noticed this happening with other single threaded application.
Logged

Keiseth

  • Bay Watcher
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #25 on: November 08, 2008, 09:45:26 pm »

I really think it's the OpenGL thing. I remember some single-threaded programs using slightly more than one core's worth of power, and couldn't figure it out.

Sincle OpenGL is hardware accelerated, perhaps it has something to do with your video hardware. I have integrated Intel laptop graphics, for instance. I wonder what FFLaguna has?
Logged

FFLaguna

  • Bay Watcher
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #26 on: November 08, 2008, 10:10:12 pm »

I really think it's the OpenGL thing. I remember some single-threaded programs using slightly more than one core's worth of power, and couldn't figure it out.

Sincle OpenGL is hardware accelerated, perhaps it has something to do with your video hardware. I have integrated Intel laptop graphics, for instance. I wonder what FFLaguna has?

Nvidia GTX 280. The most recent Nvidia card. ;)
Logged

Morberis

  • Bay Watcher
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #27 on: November 08, 2008, 10:44:45 pm »

I think a lot of these sorts of things should really wait until the game is mostly done.   Consider it like a cake that needs to be baked before you can frost it.

I was under the impression that it was easier if it was planned from the start.
Logged

MuonDecay

  • Bay Watcher
  • Say hello to my little μ
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #28 on: November 08, 2008, 11:11:09 pm »

I think a lot of these sorts of things should really wait until the game is mostly done.   Consider it like a cake that needs to be baked before you can frost it.

I was under the impression that it was easier if it was planned from the start.

I'm pretty sure parallel processing is way easier to implement right from the beginning than it is after the fact, yeah.

That doesn't change the fact that Toady might not be comfortable having the extra complexity to wrangle with, though. I understand his reluctance, it's just one more thing to have bugs with and it would require learning a new discipline.
Logged

Core Xii

  • Bay Watcher
    • View Profile
Re: DF process is using more than one processor core somehow?
« Reply #29 on: November 09, 2008, 08:15:38 am »

Dwarf Fortress itself is not multi-threaded. All game logic happens in a single thread. However, because it uses other libraries for sound and graphics, the application as a whole contains more than one thread.

This is true for nearly every program running on your computer. In fact, there's only one program on mine that uses but a single thread: Notepad.
Logged
Reality is for people who lack imagination
Pages: 1 [2] 3