28DefaultScene::DefaultScene(PlatformContext& context, Project&
parent,
const SceneEntry&
entry)
31 Scene::DEFAULT_SCENE_GUID = getGUID();
34bool DefaultScene::load() {
35 const bool loadState = Scene::load();
36 state()->saveLoadDisabled(
true);
38 addGuiTimer(TimerClass::APP_TIME,
39 Time::SecondsToMicroseconds( 0.25),
40 [
this]( [[maybe_unused]]
const U64 elapsedTimeUS )
42 _GUI->modifyText(
"RenderBinCount",
43 Util::StringFormat(
"Number of items in Render Bin: {}.", _context.kernel().renderPassManager()->getLastTotalBinSize( RenderStage::DISPLAY ) ),
47 addGuiTimer( TimerClass::APP_TIME,
48 Time::SecondsToMicroseconds( 1.0 ),
49 [
this](
const U64 elapsedTimeUS )
51 _GUI->modifyText(
"timeDisplay",
52 Util::StringFormat(
"Elapsed time: {:5.0f}", Time::MicrosecondsToSeconds(elapsedTimeUS)),
59void DefaultScene::postLoadMainThread()
61 _GUI->addText(
"timeDisplay",
65 "Elapsed time: 0.0f" );
67 _GUI->addText(
"RenderBinCount",
71 "Number of items in Render Bin: 0" );
72 Scene::postLoadMainThread();
constexpr Optick::Category::Type Scene
Handle console commands that start with a forward slash.
RelativePosition2D pixelPosition(const I32 x, const I32 y)
Project const SceneEntry & entry