Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The optimization #115

Closed
alextbw opened this issue Dec 9, 2017 · 5 comments
Closed

The optimization #115

alextbw opened this issue Dec 9, 2017 · 5 comments
Assignees

Comments

@alextbw
Copy link

@alextbw alextbw commented Dec 9, 2017

Hello. I know I have a potato PC (Athlon 5600+ 2 cores 2 threads 2.9 GHz, 6Gb of DDR2, GeForce GT630).
I noticed that when I respawn in a shuttle FPS drops from nearly-playable 20-30 to 10, 5 and even 1! Although neither the CPU, neither the graphics card are fully loaded. I don't know why is this happening, maybe the game draws the objects that are not visible? This happens on big subs also.
P.S. My friend with Xeon X5660 (6C/12T) and GTX770 experiences the same problems, but his minimum fps is around 15-20.
P.P.S Yes, I am planning to upgrade in the near future
P.P.P.S War Thunder runs on my machine on ultra low, and FPS is like 20-30
Example of FPS and card load:
image
image
image

@NilanthAnimosus
Copy link
Contributor

@NilanthAnimosus NilanthAnimosus commented Dec 10, 2017

The issue of the frame rate drop is actually down to the CPU usage usually, and not the GPU usage.

Though judging by the images above it looks like it could be GPU related, though its more commonly the processor for most as that causes the "Drain" on frame rate.

The game has a few optimizations needed in the main update loop, it runs a lot of its update code on a single core. This would normally perform alright but the game does have a few areas to optimize.

The reason for the frame rate drops is how Monogame's timing works, if the update loop takes too long it begins skipping draw calls, the further behind it gets the more this compounds in an effort to catch up. draw calls don't really take almost any amount of cpu however but this behaviour isn't something I think can be overridden with any ease.

eventually it reaches a minimum draws / second, which is your lowest FPS you will reach.

Once it has fallen behind it takes time to "Catch back up" so the FPS loss feels like a wind-up and unwind. you can look up XNA or Monogame timing on how this really works if you wish.

Last time I examined performance, it was a lot of ray casting and map entity updates, Beyond this I don't really know much more.

@alextbw
Copy link
Author

@alextbw alextbw commented Dec 11, 2017

So turns out that single-core performance is more important for this game?

@juanjp600 juanjp600 added the Bug label Dec 11, 2017
@juanjp600 juanjp600 self-assigned this Mar 1, 2018
@Cyprex
Copy link

@Cyprex Cyprex commented Mar 10, 2018

I can confirm large fps issues as well ~2 fps. Note that this is on Linux. I remember the game being very playable on Windows ~2 years ago

@Cyprex
Copy link

@Cyprex Cyprex commented Mar 12, 2018

Situations with large amounts of crew members, especially respawn shuttles with 6+ members seem to tank fps the most, the game runs fine(30-50fps) for the most part in simpler situations

@Regalis11
Copy link
Owner

@Regalis11 Regalis11 commented Dec 4, 2018

I think this can be closed. Even though we still have lots of work ahead with optimization, it's not really something that's ever fully "done", and I don't know if it makes sense to keep an issue open for a continuous process like this.

@Regalis11 Regalis11 closed this Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants