mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
handle some special cases (disconnect during some moments) and fix "bind adress already in use" error
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/20 18:25:18 by tomoron #+# #+# */
|
||||
/* Updated: 2025/03/17 18:05:15 by tomoron ### ########.fr */
|
||||
/* Updated: 2025/03/18 12:56:01 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -75,7 +75,6 @@ class Clusterizer
|
||||
std::string _sceneName;
|
||||
Renderer *_renderer;
|
||||
|
||||
std::vector<t_job *> _jobs[3];
|
||||
|
||||
void imguiJobStat(void);
|
||||
void imguiClients(void);
|
||||
@ -124,4 +123,6 @@ class Clusterizer
|
||||
struct pollfd *_pollfds;
|
||||
std::map<int, t_client> _clients;
|
||||
size_t _curFrame;
|
||||
|
||||
std::vector<t_job *> _jobs[3];
|
||||
};
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/12/23 18:30:18 by ycontre #+# #+# */
|
||||
/* Updated: 2025/03/17 15:26:14 by tomoron ### ########.fr */
|
||||
/* Updated: 2025/03/18 13:37:23 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -139,7 +139,7 @@ class Scene
|
||||
Camera *getCamera(void) const;
|
||||
GPUMaterial getMaterial(int material_index);
|
||||
|
||||
bool fail(void) const;
|
||||
bool error(void) const;
|
||||
|
||||
void changeScene(std::string &name, std::vector<Buffer *> &buffers);
|
||||
|
||||
@ -148,7 +148,7 @@ class Scene
|
||||
private:
|
||||
void init(std::string &name);
|
||||
|
||||
bool _fail;
|
||||
bool _error;
|
||||
std::vector<GPUBvhData> _gpu_bvh_data;
|
||||
std::vector<GPUBvh> _gpu_bvh;
|
||||
|
||||
|
Reference in New Issue
Block a user