Improve performance?

(previously 'DEVELOPER') Private forum for registered community members. To register, please visit www.prison-architect.com/register.

Moderator: NBJeff

TheEisbaer
level1
level1
Posts: 53
Joined: Wed Dec 19, 2012 6:26 pm
Location: Germany
Contact:

Improve performance?

Postby TheEisbaer » Fri Aug 30, 2013 12:06 pm

Is there a way to improve my performance exept reloading my save every 5 minutes?
I have the sampling/filtering option on off. The game begins to stutter every then and now. :/
-
And I still can't play in fullscreen._.
(NVidia GTX 280 @ 1280x1024 and any other resolution)
perryliu97
level2
level2
Posts: 183
Joined: Wed Nov 21, 2012 11:40 pm

Postby perryliu97 » Fri Aug 30, 2013 12:34 pm

Keep your staff number below 35, or maybe even 30. It can be hard, but some have reported that the lag gets insane when staff numbers go high.
Or keep your prisoner number small.
Or play on a small map.
More AI friendly roads may help too, as pathfinding CAN cause lag in many games.
totalysexyguy
level1
level1
Posts: 11
Joined: Mon Oct 01, 2012 1:02 am

Postby totalysexyguy » Fri Aug 30, 2013 7:38 pm

Alpha = Adding features

Beta = Fixing bugs (like bad performance)

Let them add content and worry about performance later, I assure you, the performance will be improved down the road.

~cheers :D
User avatar
Novbert
level2
level2
Posts: 82
Joined: Thu Aug 01, 2013 7:24 am

Postby Novbert » Fri Aug 30, 2013 8:43 pm

Lag has nothing to do with graphic options - it's not that game. It's more about the way workers and other folks get assigned to jobs.
Play on a small map really, that is relatively stable.
User avatar
Novbert
level2
level2
Posts: 82
Joined: Thu Aug 01, 2013 7:24 am

Postby Novbert » Fri Aug 30, 2013 8:44 pm

Lag has nothing to do with graphic options - it's not that game. It's more about the way workers and other folks get assigned to jobs.
Play on a small map really, that is relatively stable.
mitchmann300
level1
level1
Posts: 21
Joined: Mon Jun 10, 2013 7:39 am

Postby mitchmann300 » Fri Aug 30, 2013 8:54 pm

Lag is when you are playing online games with ping and latency but what you are experiencing is frame rate drops
NormenJaydenFBI
level1
level1
Posts: 21
Joined: Thu Aug 29, 2013 9:10 pm

Postby NormenJaydenFBI » Fri Aug 30, 2013 8:59 pm

I have a very good computer personally, but I do experience lag problems on occasions and restarting the game seems to fix them. In your case, keep your prisoner count and staff count lower; as development progresses the game should hopefully become more stable, it is still Alpha after all.
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Fri Aug 30, 2013 10:00 pm

mitchmann300 wrote:Lag is when you are playing online games with ping and latency but what you are experiencing is frame rate drops

If you are going to be a pedant and correct other people, please make sure that you are correct. In this case, you are incorrect (or, at the very best, only correct in a very narrow sense). Let's examine this, shall we?

A basic definition for lag is given by
Google wrote:lag: (verb) fall behind in movement, progress, or development; not keep pace with another or others

In the current context, it is perfectly reasonable to say that the framerate is not keeping pace, or that the game is falling behind. That is, it is entirely reasonable to say that the game is lagging. In a more general sense, the goal of language is to communicate ideas. You clearly had no difficulty understanding what TheEisbaer was saying, as you correctly noted that he was experiencing problems with framerates. It seems that TheEisbaer effectively communicated.

As to the rest of your post, I have a couple of minor quibbles. First, I understand that there is a somewhat technical definition of the word "lag" in computer networking. This definition is a bit more refined than the general vernacular definition. Lag is (basically) the perception of problems related to latency and other network issues (see, for instance, this link). That is kind of irrelevant, since TheEisbaer was clearly talking about diminishing framerates. Second, "ping" refers to the amount of time that it takes for a packet to get from A to B and back again (basically, the roundtrip communication time). It is nonsense to talk about "playing online games with ping." I know, this is a minor, pedantic point, but you started with the pedantry. As I said, if you are going to be pedantic, be correct. What you meant to say was "playing online games with *high* ping" (i.e. long roundtrip times). High ping and high latency are essentially synonyms, thus the mention of latency is redundant. Finally, it should be noted that "latency" has vernacular meaning, as well, and that we are really discussing *network* latency, rather than some other notion of the word.

xander
bolesting
level1
level1
Posts: 14
Joined: Sun Aug 25, 2013 1:31 am

Postby bolesting » Sat Aug 31, 2013 11:06 am

I dont know is it because I buyed strong components for my PC or its about new update, but alpha 13 work like charm for me, no slow down, no more stuck workers...AMAZING
TheEisbaer
level1
level1
Posts: 53
Joined: Wed Dec 19, 2012 6:26 pm
Location: Germany
Contact:

Postby TheEisbaer » Sat Aug 31, 2013 11:08 am

For some reason the fps drops are getting fewer o.O
(I set the filtering thing on the highest)
thekillergreece
level4
level4
Posts: 876
Joined: Wed Jun 12, 2013 1:31 pm
Location: Ammm...Greece maybe?

Postby thekillergreece » Sat Aug 31, 2013 11:43 am

Lag has to do with a lot A.I trying to find a pathfinding. Most a.i, huge lags.

Especially doctors and guards. If guards spots an incident, he wont rush to the scene, just run,stop,run, so prisoner keep on running...


Guess the lag comes from the size of prison and how many A.I are there. It has nothing to do with the graphics or game settings. Some memory leaks
Mouaku
level0
Posts: 6
Joined: Fri Jun 28, 2013 11:34 pm

Postby Mouaku » Sat Aug 31, 2013 12:17 pm

xander wrote:
mitchmann300 wrote:Lag is when you are playing online games with ping and latency but what you are experiencing is frame rate drops

If you are going to be a pedant and correct other people, please make sure that you are correct. In this case, you are incorrect (or, at the very best, only correct in a very narrow sense). Let's examine this, shall we?

A basic definition for lag is given by
Google wrote:lag: (verb) fall behind in movement, progress, or development; not keep pace with another or others

In the current context, it is perfectly reasonable to say that the framerate is not keeping pace, or that the game is falling behind. That is, it is entirely reasonable to say that the game is lagging. In a more general sense, the goal of language is to communicate ideas. You clearly had no difficulty understanding what TheEisbaer was saying, as you correctly noted that he was experiencing problems with framerates. It seems that TheEisbaer effectively communicated.

As to the rest of your post, I have a couple of minor quibbles. First, I understand that there is a somewhat technical definition of the word "lag" in computer networking. This definition is a bit more refined than the general vernacular definition. Lag is (basically) the perception of problems related to latency and other network issues (see, for instance, this link). That is kind of irrelevant, since TheEisbaer was clearly talking about diminishing framerates. Second, "ping" refers to the amount of time that it takes for a packet to get from A to B and back again (basically, the roundtrip communication time). It is nonsense to talk about "playing online games with ping." I know, this is a minor, pedantic point, but you started with the pedantry. As I said, if you are going to be pedantic, be correct. What you meant to say was "playing online games with *high* ping" (i.e. long roundtrip times). High ping and high latency are essentially synonyms, thus the mention of latency is redundant. Finally, it should be noted that "latency" has vernacular meaning, as well, and that we are really discussing *network* latency, rather than some other notion of the word.

xander


owned
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Sat Aug 31, 2013 6:05 pm

thekillergreece wrote:Guess the lag comes from the size of prison and how many A.I are there.

This is probably most of the problem. The larger the map, the more cells that the pathfinding algorithm has to search, thus the more processor time is required. Similarly, more staff and prisoners means more paths to find. A poorly optimized pathfinding algorithm is likely to blame.

thekillergreece wrote:Some memory leaks

This is a problem, too, but shouldn't have an effect on performance unless the physical RAM is maxed out and memory is being swapped to disk.

xander
JSwigart
level1
level1
Posts: 10
Joined: Fri Aug 30, 2013 11:30 pm

Postby JSwigart » Sun Sep 01, 2013 7:47 pm

I would think, as an AI programmer myself, that the pathfinding for this sort of game would be ideally implemented in the form of flow fields or influence maps, where path finding would be pretty much free. There isn't enough dynamic obstacles or a large enough tile map to not invest more memory into making pathfinding as trivial in cost as these techniques would allow.
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Sun Sep 01, 2013 8:52 pm

JSwigart wrote:I would think, as an AI programmer myself, that the pathfinding for this sort of game would be ideally implemented in the form of flow fields or influence maps, where path finding would be pretty much free. There isn't enough dynamic obstacles or a large enough tile map to not invest more memory into making pathfinding as trivial in cost as these techniques would allow.

Pretty sure that pathfinding is currently done using A*. I don't know enough about algorithms to know exactly what you are suggesting, but my impression after a quick Google is that flow fields are appropriate for swarms moving through a continuum, and that influence maps can be used to alter cell values for another algorithm, such as A*. I don't understand how either would significantly improve performance in the current context. Perhaps you could expand on your ideas a bit?

xander

Return to “Community Members”

Who is online

Users browsing this forum: No registered users and 7 guests