aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-24 15:28:39 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-24 15:28:39 +0100
commit0225570cb171f66a63a6c0120652fe7f6f343e55 (patch)
treeb0f324139a82d2e978603117ecd681b7ef8e1207 /src/ft_raycasting.c
parentBack to clang (diff)
download42-cub3d-0225570cb171f66a63a6c0120652fe7f6f343e55.tar.gz
42-cub3d-0225570cb171f66a63a6c0120652fe7f6f343e55.tar.bz2
42-cub3d-0225570cb171f66a63a6c0120652fe7f6f343e55.tar.xz
42-cub3d-0225570cb171f66a63a6c0120652fe7f6f343e55.tar.zst
42-cub3d-0225570cb171f66a63a6c0120652fe7f6f343e55.zip
less threads
Diffstat (limited to '')
-rw-r--r--src/ft_raycasting.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c
index 1804118..ea27d29 100644
--- a/src/ft_raycasting.c
+++ b/src/ft_raycasting.c
@@ -104,7 +104,7 @@ static void
void
ft_castray(t_cub *cl)
{
- pthread_t tid[2];
+ /* pthread_t tid[2]; */
uint16_t y;
uint16_t x;
@@ -173,10 +173,12 @@ void
cl->rlist.row_dist_tab[cl->wlist.y_size - y] = cl->rlist.row_dist;
y++;
}
- pthread_create(&tid[0], 0x0, ft_wall_cast, (void*)cl);
- pthread_create(&tid[1], 0x0, ft_floor_cast, (void*)cl);
- pthread_join(tid[0], 0x0);
- pthread_join(tid[1], 0x0);
+ ft_wall_cast(cl);
+ ft_floor_cast(cl);
+ /* pthread_create(&tid[0], 0x0, ft_wall_cast, (void*)cl); */
+ /* pthread_create(&tid[1], 0x0, ft_floor_cast, (void*)cl); */
+ /* pthread_join(tid[0], 0x0); */
+ /* pthread_join(tid[1], 0x0); */
x = 0;
while (x < 2)
{