Setting near and far with scene bounds collider. Also LR schedules. (#74)

* some initial cuda code as I learn. using git to save progress.

* first cuda kernel for ray sampling that mostly works

* cleaning up code. working on lr. structs for scene bounds aabb

* added scene bounds collider code

* updated setup

* setup

* setup

* black

* including some files

* exporting env variable

* new file

* git workflows

* github actions

* github actions

* github actions

* removing env var
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-05-16 14:03:19 -07:00
1 parent 752df417ce
commit 676beebb14
45 files changed
+803 -8354

No files matched your search

+1 -6
View File
@@ -2,7 +2,6 @@
Profiler base class and functionality
"""
import logging
import sys
import time
from typing import Callable
@@ -21,11 +20,7 @@ def time_function(func: Callable) -> Callable:
start = time.time()
ret = func(*args, **kwargs)
if PROFILER:
vals = vars(sys.modules[func.__module__])
class_str = ""
for attr in func.__qualname__.split(".")[:-1]:
class_str += f"{vals[attr].__qualname__}_"
class_str += func.__name__
class_str = func.__qualname__
PROFILER[0].update_time(class_str, start, time.time())
return ret