mirror of https://github.com/auygun/kaliber.git
log
This commit is contained in:
parent
231efe1c92
commit
2f0a2f52eb
|
@ -84,14 +84,12 @@ void Engine::Run() {
|
|||
// Subdivide the frame time using fixed time steps.
|
||||
while (accumulator >= time_step_) {
|
||||
TaskRunner::GetThreadLocalTaskRunner()->SingleConsumerRun();
|
||||
|
||||
platform_->Update();
|
||||
Update(time_step_);
|
||||
|
||||
if (platform_->should_exit()) {
|
||||
return;
|
||||
}
|
||||
accumulator -= time_step_;
|
||||
|
||||
if (platform_->should_exit())
|
||||
return;
|
||||
};
|
||||
|
||||
// Calculate frame fraction from remainder of the frame time.
|
||||
|
@ -100,6 +98,8 @@ void Engine::Run() {
|
|||
}
|
||||
|
||||
void Engine::Initialize() {
|
||||
LOG << "Initializing engine.";
|
||||
|
||||
thread_pool_.Initialize();
|
||||
|
||||
CreateRenderer(true);
|
||||
|
|
|
@ -338,6 +338,8 @@ void Platform::HandleCmd(android_app* app, int32_t cmd) {
|
|||
}
|
||||
|
||||
Platform::Platform(android_app* app) {
|
||||
LOG << "Initializing platform.";
|
||||
|
||||
app_ = app;
|
||||
mobile_device_ = true;
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace eng {
|
|||
void KaliberMain(Platform* platform);
|
||||
|
||||
Platform::Platform() {
|
||||
LOG << "Initializing platform.";
|
||||
|
||||
root_path_ = "../../";
|
||||
LOG << "Root path: " << root_path_.c_str();
|
||||
|
||||
|
|
Loading…
Reference in New Issue