logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Poll
Poll Question: Do you experience FPS stuttering with Unreal?
bars   pie

No, my FPS is stable    
  5 (62.5%)
Yes, my FPS is stuttering    
  3 (37.5%)




Total votes: 8
« Last Modified by: Hyper on: Feb 12th, 2018 at 1:34pm »
Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Do you experience FPS stuttering with Unreal? (Read 1216 times)
Hyper
Board Moderator
Betatester
*****
Offline


It's Unreal.

Posts: 2919
Joined: Oct 11th, 2002
Do you experience FPS stuttering with Unreal?
Feb 12th, 2018 at 1:33pm
Print Post  
Almost all systems run multi-core and/or hyperthreading systems by now and Unreal can have some performance problems on these systems, at least I still run into FPS drops, choppy performance and stuttering until I force Unreal.exe to run on a single CPU core. (CPU affinity) I'm wondering if more players are experiencing these issues.

If this issue is widespread, a solution could be to force future versions of Unreal to run on core 0. Users can also do this individually.

More info and a tool to do so can be found here:
http://www.hypercoop.tk/indexh.htm
« Last Edit: Feb 12th, 2018 at 2:48pm by Hyper »  
Back to top
WWW  
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 7683
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: Do you experience FPS stuttering with Unreal?
Reply #1 - Feb 12th, 2018 at 2:01pm
Print Post  
Which version are you using right now? 227 should not cause this anymore, we have such an option in Unreal.ini, UseCPU I think it is, but I am on my mobile right now, so can't check (-1 disables it, or specify a core by number starting with 0).
  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
Masterkent
Developer Team
Offline



Posts: 1040
Location: Russia
Joined: Apr 5th, 2013
Gender: Male
Re: Do you experience FPS stuttering with Unreal?
Reply #2 - Feb 12th, 2018 at 2:10pm
Print Post  
Smirftsch wrote on Feb 12th, 2018 at 2:01pm:
227 should not cause this anymore, we have such an option in Unreal.ini, UseCPU I think it is, but I am on my mobile right now

It works for me well:
Init: CPU Speed=2494.239590 MHz
Init: CPU Page size=4096, Processors / Cores=8
Init: CPU Detected: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz
Init: CPU Features: MMX SSE SSE2 SSE3 SSSE3 SSE41 SSE42
Log: Forcing Unreal thread to run on CPU 0
  
Back to top
 
IP Logged
 
Hyper
Board Moderator
Betatester
*****
Offline


It's Unreal.

Posts: 2919
Joined: Oct 11th, 2002
Re: Do you experience FPS stuttering with Unreal?
Reply #3 - Feb 12th, 2018 at 2:40pm
Print Post  
I run 227j_38 beta.
I'll have to check my .ini then. Most likely this option was never set because I do not usually overwrite my .ini files for obvious reasons, but this can result in me missing certain settings.

By default, the game ran on all 12 "cores" (6 core / 12 thread CPU)
  
Back to top
WWW  
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 7683
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: Do you experience FPS stuttering with Unreal?
Reply #4 - Feb 12th, 2018 at 3:17pm
Print Post  
The method I use may not be reflected by the process manager (I am setting thread not process affinity). You should concentrate on results when testing.
On a general note, when it comes to forcing affinity the usual answer from any c++ coding community is "don't touch, EVIL EVIL, let the OS do!" - setting the affinity in Unreal is also more a workaround rather than a fix in my eyes. You may want to give Force1MsTimer a try too if it haves any impact on this issue (while UTGLR rendevs may set this either way).
  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
Hyper
Board Moderator
Betatester
*****
Offline


It's Unreal.

Posts: 2919
Joined: Oct 11th, 2002
Re: Do you experience FPS stuttering with Unreal?
Reply #5 - Feb 12th, 2018 at 3:53pm
Print Post  
Ok, I'm at home now so I can do some checking:

Code
Select All
[Core.System]
UseCPU=0 



Code
Select All
Init: CPU Speed=3591.727746 MHz
Init: CPU Page size=4096, Processors / Cores=12
Init: CPU Detected: Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz
Init: CPU Features: MMX SSE SSE2 SSE3 SSSE3 SSE41 SSE42
Log: Forcing Unreal thread to run on CPU 0 



This does not force Unreal to single core.



  
Back to top
WWW  
IP Logged
 
Masterkent
Developer Team
Offline



Posts: 1040
Location: Russia
Joined: Apr 5th, 2013
Gender: Male
Re: Do you experience FPS stuttering with Unreal?
Reply #6 - Feb 12th, 2018 at 4:09pm
Print Post  
Hyper wrote on Feb 12th, 2018 at 3:53pm:
Code
Select All
[Core.System]
UseCPU=0 



This does not force Unreal to single core.

As said above, it's not supposed to set affinity for the entire process, this option affects thread affinity for the main thread.
  
Back to top
 
IP Logged
 
Hyper
Board Moderator
Betatester
*****
Offline


It's Unreal.

Posts: 2919
Joined: Oct 11th, 2002
Re: Do you experience FPS stuttering with Unreal?
Reply #7 - Feb 12th, 2018 at 4:32pm
Print Post  
Masterkent wrote on Feb 12th, 2018 at 4:09pm:
Hyper wrote on Feb 12th, 2018 at 3:53pm:
Code
Select All
[Core.System]
UseCPU=0 



This does not force Unreal to single core.

As said above, it's not supposed to set affinity for the entire process, this option affects thread affinity for the main thread.


I'll have to do some more testing then. Maybe it is just a quirk on my system.

Code
Select All
[Core.System]
Force1msTimer=True 



This was/is my setting by the way.
  
Back to top
WWW  
IP Logged
 
Masterkent
Developer Team
Offline



Posts: 1040
Location: Russia
Joined: Apr 5th, 2013
Gender: Male
Re: Do you experience FPS stuttering with Unreal?
Reply #8 - Feb 12th, 2018 at 4:37pm
Print Post  
You can check thread affinity using Process Hacker.

This is what I have:



  
Back to top
 
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 7683
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: Do you experience FPS stuttering with Unreal?
Reply #9 - Feb 13th, 2018 at 8:03am
Print Post  
Hyper wrote on Feb 12th, 2018 at 4:32pm:
I'll have to do some more testing then. Maybe it is just a quirk on my system.

Even if I repeat myself here, just that I (or some other people) do not experience a problem, it does not mean that such a problem isn't existing. I only have a small amount of systems I can test with and usually I do testing only on 2 of them. This is hardly a statistically significant number.
There are always plenty of possible variables almost impossible to overview: drivers (not only graphics card but also chipset), mainboard(bios), user specific settings, OS- just to name a few.
If you experience such a problem it is very possible someone else does as well.

What this means is plain that if you find a reliable way to test and perhaps fix such an issue, I can try to provide a version having a fix included for you to test with.
So in this specific case if thread affinity does not solve it, but process affinity does (at least when setting manually) I could make a build setting process affinity codewise instead to see if this makes a difference.

  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
Krull0r
Global Moderator
Betatester
Developer Team
*****
Offline


227 Emitter Expert

Posts: 345
Location: Germany
Joined: Jul 1st, 2007
Gender: Male
Re: Do you experience FPS stuttering with Unreal?
Reply #10 - Feb 13th, 2018 at 9:17am
Print Post  
Hello 👋🏻

Since we are talking about performance I discovered a strange issue in the latest 227j version.
I got micro stuttering while animated sprites are playing its sequence.

For example in harobed when the smoke of the terraniux got triggered and the player see the smoke generator I got micro stuttering.
The same problem occurs on my modified ASMD. I replaced the smoke with vertex attached emitters which are playing a smokepuff sequence.
  

Back to top
 
IP Logged
 
Hyper
Board Moderator
Betatester
*****
Offline


It's Unreal.

Posts: 2919
Joined: Oct 11th, 2002
Re: Do you experience FPS stuttering with Unreal?
Reply #11 - Feb 13th, 2018 at 1:39pm
Print Post  
I checked thread affinity in the way Masterkent demonstrated, and Unreal's main thread is running at core 0. So, that is being set.

However, I have difficulty to reliably replicate the stuttering at this moment. I'm also testing threaded/multicore optimization setting in the nVidia driver control panel to see if this helps but I can't pinpoint it yet.
  
Back to top
WWW  
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 7683
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: Do you experience FPS stuttering with Unreal?
Reply #12 - Feb 13th, 2018 at 2:33pm
Print Post  
When it comes to NVIDIA, I had some serious performance drop when activating "Threaded optimization" - at least with XOpenGL, also I noticed some issues in between because NVIDIA's 3D settings assumes Unreal to be Unreal Engine 3. I wasn't able to reproduce this trouble with recent drivers, but I had to remove this preset back then with some tweaking tool since the driver in the Control Panel does not allow to remove pre-defined settings.
  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
Masterkent
Developer Team
Offline



Posts: 1040
Location: Russia
Joined: Apr 5th, 2013
Gender: Male
Re: Do you experience FPS stuttering with Unreal?
Reply #13 - Feb 13th, 2018 at 5:49pm
Print Post  
If there is a stuttering, it should be measurable. At least, we can check what is the longest time interval between two successive ticks.

https://www.upload.ee/files/8032388/FPSStat.u.html
Usage:
1. open <MapName>?mutator=FPSStat.FPSStat, or
2. summon FPSStat.FPSStat

Avg Frame Rate - average frame rate measured within ~1 second;

Min Frame Time - minimal time interval between two successive ticks measured within ~1 second;

Avg Frame Time - average time interval between two successive ticks measured within ~1 second;

Max Frame Time - maximal time interval between two successive ticks measured within ~1 second;

Min Frame Rate - 1 divided by Max Frame Time.

All values are updated about 1 time per second, starting a new period of measurements.

On my system, I've got the most stable FPS with D3D9 (Min Frame Rate > 50 fps), when frame rate was limited by 59 fps (and I'm playing with V-sync).
« Last Edit: Feb 13th, 2018 at 6:51pm by Masterkent »  
Back to top
 
IP Logged
 
Hyper
Board Moderator
Betatester
*****
Offline


It's Unreal.

Posts: 2919
Joined: Oct 11th, 2002
Re: Do you experience FPS stuttering with Unreal?
Reply #14 - Feb 15th, 2018 at 11:54pm
Print Post  
Masterkent wrote on Feb 13th, 2018 at 5:49pm:
If there is a stuttering, it should be measurable. At least, we can check what is the longest time interval between two successive ticks.

https://www.upload.ee/files/8032388/FPSStat.u.html
Usage:
1. open <MapName>?mutator=FPSStat.FPSStat, or
2. summon FPSStat.FPSStat

Avg Frame Rate - average frame rate measured within ~1 second;

Min Frame Time - minimal time interval between two successive ticks measured within ~1 second;

Avg Frame Time - average time interval between two successive ticks measured within ~1 second;

Max Frame Time - maximal time interval between two successive ticks measured within ~1 second;

Min Frame Rate - 1 divided by Max Frame Time.

All values are updated about 1 time per second, starting a new period of measurements.

On my system, I've got the most stable FPS with D3D9 (Min Frame Rate > 50 fps), when frame rate was limited by 59 fps (and I'm playing with V-sync).


Thanks. I checked and everything seems okay now. Maybe it was something system-specific on my side after all.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo