Skip to content

Commit

Permalink
Update for API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Dec 22, 2023
1 parent 61a6994 commit ed00224
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion RavEngine
2 changes: 0 additions & 2 deletions Samples/AirHockey/AirHockey_App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ class AirHockey : public RavEngine::App {
void OnStartup(int argc, char** argv) final{
//setup video settings
RenderEngine::VideoSettings.vsync = true;

SetMinTickTime(std::chrono::duration<double,std::milli>(1.0/120 * 1000));

AddWorld(RavEngine::New<MainMenu>());
}
Expand Down
2 changes: 0 additions & 2 deletions Samples/Perf_Draw/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ struct Performance_B : public RavEngine::App {
}
private:
void OnStartup(int argc, char** argv) final{
//unlock tickrate
//SetMinTickTime(std::chrono::duration<double, std::milli>(0));

// load world
AddWorld(RavEngine::New<PerfB_World>());
Expand Down
3 changes: 0 additions & 3 deletions Samples/Perf_DrawAnimated/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ class Performance_C : public RavEngine::App{

GetRenderEngine().SyncVideoSettings();

//unlock the tickrate
//SetMinTickTime(std::chrono::duration<double, std::milli>(0));

AddWorld(RavEngine::New<PerfC_World>());

SetWindowTitle(StrFormat("{} | {}", APPNAME, GetRenderEngine().GetCurrentBackendName()).c_str());
Expand Down
5 changes: 1 addition & 4 deletions Samples/Perf_ECS/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ struct Performance_A : public RavEngine::App {
RavEngine::Dialog::ShowBasic("Fatal Error", msg, Dialog::MessageBoxType::Error);
}
private:
void OnStartup(int argc, char** argv) final{
//unlock tickrate
SetMinTickTime(std::chrono::duration<double, std::milli>(0));

void OnStartup(int argc, char** argv) final{
GetRenderEngine().VideoSettings.vsync = false;
GetRenderEngine().SyncVideoSettings();

Expand Down
1 change: 0 additions & 1 deletion Samples/SystemInfo/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ Graphics<br/>

struct SystemApp : public App{
void OnStartup(int argc, char **argv) final{
//SetMinTickTime(std::chrono::duration<double, std::milli>(33)); // limit to 30fps
AddWorld(RavEngine::New<Level>());

SetWindowTitle(StrFormat("{} | {}", APPNAME, App::GetRenderEngine().GetCurrentBackendName()).c_str());
Expand Down

0 comments on commit ed00224

Please sign in to comment.