Add profiling with Remotery

This commit is contained in:
David 2021-08-24 20:55:39 +02:00
commit 6331a2bf79
50 changed files with 16864 additions and 11 deletions

View file

@ -26,6 +26,7 @@ struct hittable_list : hittable {
bool hittable_list::hit(const ray& r, double t_min, double t_max, hit_record& rec) const
{
rmt_ScopedCPUSample(HittableList_Hit, RMTSF_Aggregate);
hit_record temp_rec;
bool hit_anything = false;
double closest_so_far = t_max;