mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
update
This commit is contained in:
parent
4e5869882e
commit
c3b4357852
4 changed files with 29 additions and 6 deletions
|
|
@ -304,7 +304,7 @@ int main() {
|
|||
bool occlusion = false;
|
||||
bool devdata = false;
|
||||
|
||||
glfwSwapInterval(1);
|
||||
glfwSwapInterval(0);
|
||||
|
||||
std::cout << "-- initializing finished" << std::endl;
|
||||
|
||||
|
|
@ -314,6 +314,7 @@ int main() {
|
|||
float currentTime = glfwGetTime();
|
||||
delta = currentTime - lastTime;
|
||||
lastTime = currentTime;
|
||||
int fps = 1 / delta;
|
||||
|
||||
if (Events::jpressed(GLFW_KEY_O)){
|
||||
occlusion = !occlusion;
|
||||
|
|
@ -332,7 +333,7 @@ int main() {
|
|||
for (int i = 0; i < freeLoaders; i++)
|
||||
chunksController.loadVisible(wfile);
|
||||
|
||||
draw_world(camera, assets, chunks, occlusion, devdata);
|
||||
draw_world(player, camera, assets, chunks, occlusion, devdata, fps);
|
||||
|
||||
Window::swapBuffers();
|
||||
Events::pullEvents();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue