Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: One small suggestion to improve responsiveness  (Read 1095 times)

Jaqie Fox

  • Bay Watcher
  • Genuine Girl Techie!
    • View Profile
One small suggestion to improve responsiveness
« on: March 30, 2007, 09:17:00 pm »

One small suggestion to improve responsiveness in the game througout.

Seperate user input, rendering, and physics/ai/everythingelse into three seperate independent processes.  Allow a keypress to give visual feedback to the screen  During heavy calculations (the times that the game seems to pause and become unresponsive) draw a progress indicator in a corner of the screen.  (using a single character space to issue these symbols in succession would be quite adequate -,\,|,/)  Allow world movement to act normally even during heavy calculations so people can at least look around.

[ March 30, 2007: Message edited by: Jaqie ]

Logged

Chthon

  • Bay Watcher
    • View Profile
Re: One small suggestion to improve responsiveness
« Reply #1 on: March 31, 2007, 02:20:00 am »

This is more complicated than you realize.  Although I agree that it should be done, you have to make sure that nothing the player does can affect those calculations that are currently going on, or you risk causing problems as the game might not recieve word to recalculate before it's too late and cause errors.
Logged
''d be perfect if I weren''t so arrogant.

Jaqie Fox

  • Bay Watcher
  • Genuine Girl Techie!
    • View Profile
Re: One small suggestion to improve responsiveness
« Reply #2 on: March 31, 2007, 06:45:00 am »

I do realize how complicated what I say is. by small suggestion I mean small in how it will effect playability.

And anything done can easily be applied AFTER said intensive calcs are done and the game would normally have started responding normally again, that part is very easy to do.

Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: One small suggestion to improve responsiveness
« Reply #3 on: March 31, 2007, 04:47:00 pm »

Yeah, I really don't know the slightest things about threads or whatever.  Somebody showed me something once, but it didn't like something I could use, and even if I could, it seems like quite a project.
Logged
The Toad, a Natural Resource:  Preserve yours today!

Bas Cost Budde

  • Bay Watcher
    • View Profile
    • http://www.heuveltop.nl
Re: One small suggestion to improve responsiveness
« Reply #4 on: March 31, 2007, 04:52:00 pm »

Multithreading would not be something you add overnight. Depending on the amount of architecture you have on paper, it may be possible to refactor the design into things that go in their own threads, yes, but er... it changes virtually all internal messaging.

At least, that's where I am currently with my knowledge.

Edit: I'm definately with the idea of adding responsiveness, though. Customers already made me consider that as a priority. "You may be slow, but you must tell me that now!"

[ March 31, 2007: Message edited by: Bas Cost Budde ]

Logged

Jaqie Fox

  • Bay Watcher
  • Genuine Girl Techie!
    • View Profile
Re: One small suggestion to improve responsiveness
« Reply #5 on: March 31, 2007, 05:02:00 pm »

You speak the truth, Wise Bas.
Logged

Veroule

  • Bay Watcher
    • View Profile
Re: One small suggestion to improve responsiveness
« Reply #6 on: March 31, 2007, 11:45:00 pm »

Actually the reality of the world does not trully lead to multi-threading when one considers all of the prime movers within the world.

That is basically a bunch psychology "mumbo jumbo".  DF provides an immersive environment.  Within which the prime movers of the world are displayed.  Threading the representation of those primary powers does not actually do anything beneficial.

Consider the world which you chose to call real for a moment...No one single entity or power has primary choice of movment/action over another.  All are processed and the cumulative effects are displayed.  This is a single threaded model, and I believe Mr. Toady is trying to respect the world within DF.

Logged
"Please, spare us additional torture; and just euthanise yourselves."
Delivered by Tim Curry of Clue as a parody of the lead ass from American Idol in the show Psych.

Jaqie Fox

  • Bay Watcher
  • Genuine Girl Techie!
    • View Profile
Re: One small suggestion to improve responsiveness
« Reply #7 on: April 01, 2007, 01:29:00 am »

You trying to say that SMP systems are detrimental to performance, and so is multithreaded / SMP capable software?

What color is the sky in your world?

Logged

Canuck-Errant

  • Bay Watcher
    • View Profile
Re: One small suggestion to improve responsiveness
« Reply #8 on: April 01, 2007, 05:44:00 pm »

quote:
Originally posted by Veroule:
<STRONG>Actually the reality of the world does not trully lead to multi-threading when one considers all of the prime movers within the world.

That is basically a bunch psychology "mumbo jumbo".  DF provides an immersive environment.  Within which the prime movers of the world are displayed.  Threading the representation of those primary powers does not actually do anything beneficial.

Consider the world which you chose to call real for a moment...No one single entity or power has primary choice of movment/action over another.  All are processed and the cumulative effects are displayed.  This is a single threaded model, and I believe Mr. Toady is trying to respect the world within DF.</STRONG>


I, er, think you've got the wrong idea of the word "multithreaded" here.

Logged