mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
~ | Better fps handling
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/09/27 14:51:49 by TheRed #+# #+# */
|
||||
/* Updated: 2025/03/18 13:36:35 by tomoron ### ########.fr */
|
||||
/* Updated: 2025/03/18 16:23:30 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -83,6 +83,8 @@ int main(int argc, char **argv)
|
||||
raytracing_program.set_float("u_time", (float)(glfwGetTime()));
|
||||
raytracing_program.set_vec2("u_resolution", glm::vec2(WIDTH, HEIGHT));
|
||||
|
||||
window.reduceTimeFrame();
|
||||
|
||||
std::map<std::string, std::vector<GLuint>> object_textures;
|
||||
object_textures["textures"] = scene.getTextureIDs();
|
||||
object_textures["emissive_textures"] = scene.getEmissionTextureIDs();
|
||||
|
Reference in New Issue
Block a user