View Issue Details

IDProjectCategoryView StatusLast Update
0000468Dwarf FortressGeneralpublic2010-06-09 06:47
Reporteruser1924 Assigned Touser6 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
OSWindowsOS Version7 x64 
Product Version0.31.01 
Summary0000468: Game uses a constant 25% CPU, even while idling or in menus
DescriptionDwarfForterss uses a constant 25% CPU when running on my 2.9 GHz Core i7 processor, even when the game is paused, and even when I'm sitting at the main menu. I understand the game logic is often processor intensive, but it seems the game is consuming unnecessary processor time when it should be neatly idling.
Steps To Reproduce1. Start DF
Additional InformationMy FPS are 0000039:0000030-40 while playing
TagsCPU, Main Menu, Processor

Activities

user1924

2010-04-05 06:52

reporter   ~0001066

Additional information should read: My FPS are about 30-40 while playing.

Phrost

2010-04-05 06:53

reporter   ~0001067

Could not replicate on my machine; CPU usage drops to 0 when the game is paused.

Eviltyphoon

2010-04-05 07:46

reporter   ~0001075

Last edited: 2010-04-05 07:47

Not able to replicate here either. CPU usage drops to 5-10% when paused as opposed to 50% (dual core) when unpaused

Logical2u

2010-04-05 07:52

manager   ~0001076

Typhoon's got the right idea in that DF is taking up 1 entire core of your CPU.

... Could you list your BIOS settings as they pertain to your CPU?

user6

2010-04-05 09:06

  ~0001089

Do you have PARTIAL_PRINT turned on in init?

user1924

2010-04-05 12:44

reporter   ~0001169

Last edited: 2010-04-05 12:47

My init.txt file is almost default 0.31.01, and PARTIAL_PRINT is set as the following:

[PARTIAL_PRINT:NO:2]

I believe that it's listed as 25% since it's maxing out one core, and it's a four-core system.

What BIOS settings should I look for? I'm not aware of any that would affect this.

Other changes in my init.txt are to set windowedx and windowedy to 800 and 600, respectively, and my font is curses_800x600.bmp. Graphics is set to "no" and I use windowed mode. My color depth is 32-bit, with Windows 7's Aero (window effects, cycling background, etc.) turned on.

user1924

2010-04-05 12:51

reporter   ~0001174

Also, with a processor of this speed, should I be getting 100 FPS? I only have six dwarves.

user6

2010-04-05 12:53

  ~0001175

You should set PARTIAL_PRINT to YES:2 or even YES:0. As it says in init, the purpose of that option is to increase framerate.

user1924

2010-04-05 13:20

reporter   ~0001185

Last edited: 2010-04-05 13:33

PARTIAL_PRINT YES:0 results in a dramatic improvement. I get 100 FPS and DF consumes about 10% CPU now. I figured the setting was for less powerful systems, and that it was off by default for stability (e.g. it says it could result in visual problems on some systems).

user1924

2010-04-05 13:23

reporter   ~0001187

Incidentally, what is it about my system that makes redrawing ASCII in DF so resource-intensive?

user6

2010-04-05 13:30

  ~0001190

Last edited: 2010-04-05 13:32

A combination of the way your drivers handle rendering calls, and DF's inefficient rendering code (this is one of the problems the 40d# merge will address soon).

user1924

2010-04-05 13:40

reporter   ~0001197

Thanks for the fix. For the record, my system is a Lenovo x201t, which has an Intel GMA HD integrated graphics card, and has an Intel Core i7-640LM processor.

Issue History

Date Modified Username Field Change
2010-04-05 06:51 user1924 New Issue
2010-04-05 06:52 user1924 Note Added: 0001066
2010-04-05 06:53 Phrost Note Added: 0001067
2010-04-05 07:46 Eviltyphoon Note Added: 0001075
2010-04-05 07:47 Eviltyphoon Note Edited: 0001075
2010-04-05 07:52 Logical2u Note Added: 0001076
2010-04-05 09:06 user6 Note Added: 0001089
2010-04-05 10:43 Qloos Tag Attached: CPU
2010-04-05 10:43 Qloos Tag Attached: Main Menu
2010-04-05 10:43 Qloos Tag Attached: Processor
2010-04-05 12:44 user1924 Note Added: 0001169
2010-04-05 12:47 user1924 Note Edited: 0001169
2010-04-05 12:51 user1924 Note Added: 0001174
2010-04-05 12:53 user6 Note Added: 0001175
2010-04-05 13:20 user1924 Note Added: 0001185
2010-04-05 13:23 user1924 Note Added: 0001187
2010-04-05 13:30 user6 Note Added: 0001190
2010-04-05 13:32 user6 Note Edited: 0001190
2010-04-05 13:33 user1924 Note Edited: 0001185
2010-04-05 13:40 user1924 Note Added: 0001197
2010-04-05 14:29 user6 Status new => resolved
2010-04-05 14:29 user6 Resolution open => fixed
2010-04-05 14:29 user6 Assigned To => user6
2010-04-05 23:02 user6 Resolution fixed => no change required
2010-06-09 06:47 Toady One Status resolved => closed