Matias N. Goldberg
efbe9237cc
Fix integer underflow when rounding up in VoxelGI
...
The code wanted to divide and round up:
- 0 / 64 = 0
- 63 / 64 = 1
- 64 / 64 = 1
- 65 / 64 = 2
However when the dividend was exactly 0 it would underflow and produce
67108864 instead.
This caused TDRs on empty scenes or extremely slow performance
Fix #80286
(cherry picked from commit e783e32108 )
2023-09-21 14:09:19 +02:00
..
2023-09-20 22:44:03 +02:00
2023-01-05 13:25:55 +01:00
2023-04-07 17:00:38 +02:00
2023-04-17 20:14:00 +02:00
2023-05-08 12:02:52 -04:00
2023-02-09 23:04:16 -08:00
2023-06-19 22:34:16 +02:00
2023-06-19 22:34:16 +02:00
2023-09-21 14:09:19 +02:00
2023-05-22 18:08:34 +03:00
2023-09-20 22:44:03 +02:00
2023-04-25 23:52:50 -07:00
2023-04-25 23:52:50 -07:00
2023-01-05 13:25:55 +01:00
2023-01-05 13:25:55 +01:00
2023-06-16 10:27:52 +03:00
2023-06-16 10:27:52 +03:00
2023-06-16 10:27:52 +03:00
2023-06-18 12:37:03 +02:00
2023-06-18 12:37:03 +02:00
2023-06-18 12:37:03 +02:00
2023-06-25 19:08:50 +02:00
2023-06-18 12:37:03 +02:00
2023-01-05 13:25:55 +01:00
2023-01-05 13:25:55 +01:00
2023-06-04 17:24:42 +02:00
2023-04-14 11:40:06 +02:00
2023-01-05 13:25:55 +01:00
2023-01-05 13:25:55 +01:00
2023-06-04 17:24:42 +02:00
2023-04-12 11:40:34 -07:00
2023-03-09 17:31:56 +01:00
2023-01-05 13:25:55 +01:00
2023-07-10 17:26:13 +02:00
2023-05-09 13:47:22 +10:00
2022-09-20 22:20:11 +02:00
2023-01-05 13:25:55 +01:00
2023-05-26 16:18:26 +03:00
2023-05-22 18:08:34 +03:00
2023-03-01 22:18:47 +11:00
2023-01-23 11:02:20 +01:00