Advertisement
kingtide44

Untitled

Sep 9th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1.         t1 = high_resolution_clock::now();
  2.         for (int i = 0; i < chunks.size(); i++) {
  3.             if (glm::distance(chunks[i].trans.GetPos(), cam.GetPosition()) < 400)
  4.                 chunks[i].draw_chunk(cam);
  5.         }
  6.         t2 = high_resolution_clock::now();
  7.         duration = duration_cast<microseconds>(t2 - t1).count();
  8.         std::cout << "Time in chunk drawing: " << duration / 1000000 << "s \n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement