Code review feedback

This commit is contained in:
Iain Mckay
2021-12-14 19:33:25 +01:00
parent 87c2aefe03
commit 77627f21f6
5 changed files with 145 additions and 140 deletions

View File

@@ -268,7 +268,6 @@ bool PhysicsService::Init()
{
#define CHECK_INIT(value, msg) if(!value) { LOG(Error, msg); return true; }
auto cpuInfo = Platform::GetCPUInfo();
auto& settings = *PhysicsSettings::Get();
// Send info
@@ -324,7 +323,7 @@ bool PhysicsService::Init()
}
#endif
Physics::DefaultScene = new PhysicsScene(String("Default"), settings, cpuInfo);
Physics::DefaultScene = new PhysicsScene(String("Default"), settings);
Physics::Scenes.Add(Physics::DefaultScene);
// Create default resources
@@ -515,10 +514,9 @@ PhysicsScene* Physics::FindOrCreateScene(String name)
if (scene == nullptr)
{
auto cpuInfo = Platform::GetCPUInfo();
auto& settings = *PhysicsSettings::Get();
scene = new PhysicsScene(name, settings, cpuInfo);
scene = new PhysicsScene(name, settings);
Scenes.Add(scene);
}