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