MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / SetFrameRateSettings

Method SetFrameRateSettings

engine/Poseidon/World/Scene/Scene.cpp:592–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590#endif
591}
592
593void Scene::SetFrameRateSettings(float val)
594{
595 _frameRateSettings = val;
596
597 float minFPS = _frameRateSettings * (10.0 / 15);
598 float maxFPS = _frameRateSettings * (20.0 / 15);
599 _maxTargetFrameDuration = 1000 / minFPS;
600 _minTargetFrameDuration = 1000 / maxFPS;
601
602 // allow immediate change
603 _lastScaleBetterTime = UITIME_MIN;
604 _lastScaleWorseTime = UITIME_MIN;
605}
606
607RString Scene::GetQualityText() const

Callers 2

OnSliderPosChangedMethod · 0.80
OnButtonClickedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected