Discovery Gaming Community
[Server] Game resets affinity - Printable Version

+- Discovery Gaming Community (https://discoverygc.com/forums)
+-- Forum: Discovery Development (https://discoverygc.com/forums/forumdisplay.php?fid=7)
+--- Forum: Discovery Mod General Discussion (https://discoverygc.com/forums/forumdisplay.php?fid=37)
+---- Forum: Discovery Mod Bug Reports (https://discoverygc.com/forums/forumdisplay.php?fid=573)
+----- Forum: Fixed or invalid (https://discoverygc.com/forums/forumdisplay.php?fid=574)
+----- Thread: [Server] Game resets affinity (/showthread.php?tid=186513)

Pages: 1 2


[Server] Game resets affinity - Skorak - 02-27-2021

====================
Type: Server/EXE
Bug: Affinity settings are overwritten.
====================

There has been many reports about the game being unresponsive or stuttering. I've had this myself ever since I came back where the game is unreasonably stuttery sometimes. Especially in fights it's sluggish. Well all until I set the Affinity to all cores via Task Manager. Now if that was the fix, all would be well. Yet Discovery, unlike most other programs, resets it frequently.

Discovery will reset your affinity:
• When you log into a ship
• When you dock
• When you undock

Making this very tedious to repeat every time.

Observations we made:
• This does NOT happen in single player
• This does NOT happen on a vanilla server
• This happens on the discovery server
• This happens on the crossfire server


RE: [Server] Game resets affinity - darkwind - 02-27-2021

Do you experience frequent unexpected server kicks due to cheating?
(After you enabled all cores but before they reset)


RE: [Server] Game resets affinity - Skorak - 02-27-2021

Nope. Pretty much never. The rest of the people who test this also don't.


RE: [Server] Game resets affinity - darkwind - 02-27-2021

Interesting. I'll discuss it further with others


RE: [Server] Game resets affinity - darkwind - 02-27-2021

if anyone else has this bug, reads this thread and used multicore thing to fix it.
I would like you to write here about it
and confirm that using multicore helped you and you didn't experience frequent server kicks during it


RE: [Server] Game resets affinity - Omicron - 02-27-2021

I suffer the same problem (game becomes completely unresponsive) and try to deal with it using multicore affinity, so do couple of Order| people. Its very tedious to set up everytime. I never got kicked before or after


RE: [Server] Game resets affinity - Oggdo Bogdo - 02-27-2021

(02-27-2021, 02:48 PM)darkwind Wrote: if anyone else has this bug, reads this thread and used multicore thing to fix it.
I would like you to write here about it
and confirm that using multicore helped you and you didn't experience frequent server kicks during it
I've had the same problem, multicore setting fixes it totally and has never kicked me.


RE: [Server] Game resets affinity - Save My Soul - 02-28-2021

Same. RTSS solves the problem in most cases and the FPS is kept at the 154, but in big fights it still drops. Haven't been kicked after setting affinity, yet.


RE: [Server] Game resets affinity - silentradios - 04-15-2021

I have the same issue.. I wrote a one liner in powershell you can copy/paste into the win-r run dialog to set the processoraffinity in a loop - I have experienced zero kicks, although I did have one CTD (could be unrelated) when running multi-core -- freelancer still uses one core for the majority of things regardless of affinity settings:
Code:
powershell -c while($true){$f=ps freelancer -EA SilentlyContinue;if($f -and $f.ProcessorAffinity -eq 1){$f.ProcessorAffinity=[int]([Math]::Pow(2,$env:NUMBER_OF_PROCESSORS)-1);write-host "Set at $(get-date -Format "s")"};sleep 1;}

More readable version:
Code:
while($true) {
  $fl=Get-Process -Name Freelancer -ErrorAction SilentlyContinue
  if($fl -and $fl.ProcessorAffinity -eq 1) {
    $fl.ProcessorAffinity=[int]([Math]::Pow(2,$env:NUMBER_OF_PROCESSORS)-1)
    "Set at $(get-date -Format "s")"
  }
  sleep 1
}

Does discovery itself call SetProcessAffinityMask anywhere?

Might also be reasonable to have a thread in the discovery launcher enabled by a setting that does this if the root cause isn't easy to find.


RE: [Server] Game resets affinity - sindroms - 04-15-2021

Running Win10 up to date, the mutlicore setting used to fix the issue, but not anymore. Game still stutters.