Updated CMake
This commit is contained in:
parent
33c783fcc4
commit
384c393e16
@ -18,6 +18,7 @@ endif()
|
||||
file(GLOB SOURCES
|
||||
pléascach.cpp
|
||||
*/*.cpp
|
||||
include/imgui/*.cpp
|
||||
)
|
||||
|
||||
add_executable (pleascach ${SOURCES})
|
||||
|
||||
@ -19,7 +19,7 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
while (in->queue.size()) {
|
||||
/* take event from front of queue, then process it */
|
||||
auto event = in->queue.front();
|
||||
const auto& event = in->queue.front();
|
||||
in->queue.pop();
|
||||
switch (event.tag) {
|
||||
case InputEvent::Tag::RESIZE:
|
||||
@ -42,7 +42,10 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
ren.draw();
|
||||
ren.present();
|
||||
Log::debug("Frame: %.2lf milliseconds (60fps ~ 16.67)\r", frame_timer.stop());
|
||||
Log::debug("Frame: %.2lf milliseconds (60fps ~ 16.67)\r", frame_timer.read());
|
||||
|
||||
while (frame_timer.read() < 16.60)
|
||||
;
|
||||
}
|
||||
|
||||
} catch (const std::string& e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user