@giebmasse said in Outsourcing new CPU scores for lobbies:
@meatontable said in Outsourcing new CPU scores for lobbies:
I'm not happy that definitely slow CPU from 2013 year bits more better CPU from 2017 due to the count of cores....
I don't think you have the right picture of how the CPU test in-game is working. The test that is ran in-game is single threaded, don't know why you are thinking about core counts in this way. A slow older gen 6-core AMD CPU will show up as a slow CPU with the test as it should, it does not gain anything from having a larger core count when compared to e.g. a faster 2-4 core Intel CPU from the same era. You can't compare the CPU score ran manually in a newer lua version to the one used in-game.
Also in case it wasn't clear, lower is better in the FAF CPU test.
I have take a function from https://github.com/FAForever/fa/blob/741febf45a165e257db972fc2104484a51dd799d/lua/ui/lobby/lobby.lua#L5228
I do nothing with this function except the adding time check before and after checking CPU score. Original FAF score function is related to the CPU's count but game is a single core application.