camera bug and mesh class

This commit is contained in:
Ben Kyd
2019-08-06 00:01:53 +01:00
parent ca3cf28a31
commit 2ec847bd1c
7 changed files with 36 additions and 13 deletions

View File

@@ -32,6 +32,7 @@ void ProgressiveRenderer::Render() {
int frames = 0;
auto startTime = std::chrono::high_resolution_clock::now();
while (m_interface->Active) {
auto frameStartTime = std::chrono::high_resolution_clock::now();
@@ -39,7 +40,7 @@ void ProgressiveRenderer::Render() {
for (int x = 0; x < m_scene->w; x++)
#pragma omp parallel for schedule(dynamic)
for (int y = 0; y < m_scene->h; y++) {
SDL_Event e;
while (SDL_PollEvent(&e))
if (e.type == SDL_QUIT) m_interface->Close();