mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-07-12 03:05:14 -04:00
Fix rendering at insane resolutions
This commit is contained in:
@ -337,8 +337,9 @@ class Animation(object):
|
||||
bkgd = vec.make_float3(*(bkgd / n))
|
||||
|
||||
color_fun = self.mod.get_function("colorclip")
|
||||
blocks = int(np.ceil(np.sqrt(nbins / 256)))
|
||||
color_fun(d_out, gam, vib, hipow, lin, lingam, bkgd,
|
||||
block=(256, 1, 1), grid=(nbins / 256, 1),
|
||||
block=(256, 1, 1), grid=(blocks, blocks),
|
||||
stream=filt_stream)
|
||||
cuda.memcpy_dtoh_async(h_out, d_out, filt_stream)
|
||||
|
||||
|
Reference in New Issue
Block a user