Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primary ray depth optimize #25

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

gam0022
Copy link
Owner

@gam0022 gam0022 commented Sep 1, 2019

Primary Ray は Depth 情報からレイを進めてレイマーチングを高速化しようとした。

やってみたが、性能は変わらなかった。なぜ?

OFF

primary_ray_depth_off

C:\Users\gam0022\Dropbox\redflash\build\bin\Release (master -> origin)
λ .\redflash.exe -f primary_ray_depth_off.png -W 1920 -H 1080 -t 59 -A 0.95 -S 4
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/redflash.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/cuda/redflash.cu
[info] getCuStringFromFile source_location: C:/Users/gam0022/Dropbox/redflash/redflash/redflash.cu
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/Ice_Lake/Ice_Lake_Ref.hdr
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/data/Ice_Lake/Ice_Lake_Ref.hdr
[info] resolvePath source_location: C:/Users/gam0022/Dropbox/redflash/data/Ice_Lake/Ice_Lake_Ref.hdr
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/cow.obj
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/data/cow.obj
[info] resolvePath source_location: C:/Users/gam0022/Dropbox/redflash/data/cow.obj
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/triangle_mesh.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/cuda/triangle_mesh.cu
[info] getCuStringFromFile source_location: C:/Users/gam0022/Dropbox/redflash/cuda/triangle_mesh.cu
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/metallic-lucy-statue-stanford-scan.obj
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/data/metallic-lucy-statue-stanford-scan.obj
[info] resolvePath source_location: C:/Users/gam0022/Dropbox/redflash/data/metallic-lucy-statue-stanford-scan.obj
WARN: Material file [ C:/Users/gam0022/Dropbox/redflash/data/metallic-lucy-statue-stanford-scan.mtl ] not found. Created a default material.
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/intersect_raymarching.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/cuda/intersect_raymarching.cu
[info] getCuStringFromFile source_location: C:/Users/gam0022/Dropbox/redflash/redflash/intersect_raymarching.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/intersect_sphere.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/cuda/intersect_sphere.cu
[info] getCuStringFromFile source_location: C:/Users/gam0022/Dropbox/redflash/redflash/intersect_sphere.cu
[info] resolution: 1920x1080 px
[info] time_limit: 59 sec.
[info] sample_per_launch: 4
[info] auto_set_sample_per_launch: 1
[info] auto_set_sample_per_launch_scale: 0.95
[info] sample: INF(20)
loop:0  delta_time:1.00001e-07  used_time:1.69035       remain_time:57.3097     sample:0        frame_number:1
loop:1  delta_time:2.831        used_time:4.52135       remain_time:54.4787     sample:4        frame_number:2
[info] chnage sample_per_launch: 73 to 73
loop:2  delta_time:39.5879      used_time:44.1093       remain_time:14.8907     sample:77       frame_number:3
[info] chnage sample_per_launch: 73 to 1
loop:3  delta_time:0.608636     used_time:44.7179       remain_time:14.2821     sample:78       frame_number:4
loop:4  delta_time:0.60305      used_time:45.3209       remain_time:13.6791     sample:79       frame_number:5
loop:5  delta_time:0.615246     used_time:45.9362       remain_time:13.0638     sample:80       frame_number:6
loop:6  delta_time:0.639014     used_time:46.5752       remain_time:12.4248     sample:81       frame_number:7
loop:7  delta_time:0.594678     used_time:47.1699       remain_time:11.8301     sample:82       frame_number:8
loop:8  delta_time:0.594141     used_time:47.764        remain_time:11.236      sample:83       frame_number:9
loop:9  delta_time:0.629666     used_time:48.3937       remain_time:10.6063     sample:84       frame_number:10
loop:10 delta_time:0.634749     used_time:49.0284       remain_time:9.97156     sample:85       frame_number:11
loop:11 delta_time:0.599313     used_time:49.6278       remain_time:9.37225     sample:86       frame_number:12
loop:12 delta_time:0.587598     used_time:50.2153       remain_time:8.78465     sample:87       frame_number:13
loop:13 delta_time:0.632544     used_time:50.8479       remain_time:8.15211     sample:88       frame_number:14
loop:14 delta_time:0.61719      used_time:51.4651       remain_time:7.53492     sample:89       frame_number:15
loop:15 delta_time:0.603847     used_time:52.0689       remain_time:6.93107     sample:90       frame_number:16
loop:16 delta_time:0.599941     used_time:52.6689       remain_time:6.33113     sample:91       frame_number:17
loop:17 delta_time:0.611323     used_time:53.2802       remain_time:5.71981     sample:92       frame_number:18
loop:18 delta_time:0.603125     used_time:53.8833       remain_time:5.11668     sample:93       frame_number:19
loop:19 delta_time:0.597331     used_time:54.4807       remain_time:4.51935     sample:94       frame_number:20
loop:20 delta_time:0.608424     used_time:55.0891       remain_time:3.91093     sample:95       frame_number:21
loop:21 delta_time:0.607408     used_time:55.6965       remain_time:3.30352     sample:96       frame_number:22
loop:22 delta_time:0.592125     used_time:56.2886       remain_time:2.71139     sample:97       frame_number:23
loop:23 delta_time:0.590247     used_time:56.8789       remain_time:2.12114     sample:98       frame_number:24
loop:24 delta_time:0.613266     used_time:57.4921       remain_time:1.50788     sample:99       frame_number:25
loop:25 delta_time:0.610792     used_time:58.1029       remain_time:0.897087    sample:100      frame_number:26
loop:26 delta_time:0.605503     used_time:58.7084       remain_time:0.291584    sample:101      frame_number:27
[info] reached time limit! used_time: 58.7084 sec. remain_time: 0.291584 sec.
[info] total_time: 59.1775 sec.
[info] total_sample: 101

ON

primary_ray_depth_on5

λ .\redflash.exe -f primary_ray_depth_on5.png -W 1920 -H 1080 -t 59 -A 0.95 -S 4
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/redflash.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/cuda/redflash.cu
[info] getCuStringFromFile source_location: C:/Users/gam0022/Dropbox/redflash/redflash/redflash.cu
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/Ice_Lake/Ice_Lake_Ref.hdr
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/data/Ice_Lake/Ice_Lake_Ref.hdr
[info] resolvePath source_location: C:/Users/gam0022/Dropbox/redflash/data/Ice_Lake/Ice_Lake_Ref.hdr
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/cow.obj
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/data/cow.obj
[info] resolvePath source_location: C:/Users/gam0022/Dropbox/redflash/data/cow.obj
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/triangle_mesh.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/cuda/triangle_mesh.cu
[info] getCuStringFromFile source_location: C:/Users/gam0022/Dropbox/redflash/cuda/triangle_mesh.cu
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/metallic-lucy-statue-stanford-scan.obj
[info] resolvePath source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/data/metallic-lucy-statue-stanford-scan.obj
[info] resolvePath source_location: C:/Users/gam0022/Dropbox/redflash/data/metallic-lucy-statue-stanford-scan.obj
WARN: Material file [ C:/Users/gam0022/Dropbox/redflash/data/metallic-lucy-statue-stanford-scan.mtl ] not found. Created a default material.
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/intersect_raymarching.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/cuda/intersect_raymarching.cu
[info] getCuStringFromFile source_location: C:/Users/gam0022/Dropbox/redflash/redflash/intersect_raymarching.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/intersect_sphere.cu
[info] getCuStringFromFile source_location: C:\Users\gam0022\Dropbox\redflash\build\bin\Release/cuda/intersect_sphere.cu
[info] getCuStringFromFile source_location: C:/Users/gam0022/Dropbox/redflash/redflash/intersect_sphere.cu
[info] resolution: 1920x1080 px
[info] time_limit: 59 sec.
[info] sample_per_launch: 4
[info] auto_set_sample_per_launch: 1
[info] auto_set_sample_per_launch_scale: 0.95
[info] sample: INF(20)
loop:0  delta_time:0    used_time:1.68941       remain_time:57.3106     sample:0        frame_number:1
loop:1  delta_time:2.82675      used_time:4.51617       remain_time:54.4838     sample:4        frame_number:2
[info] chnage sample_per_launch: 73 to 73
loop:2  delta_time:39.7856      used_time:44.3018       remain_time:14.6982     sample:77       frame_number:3
[info] chnage sample_per_launch: 73 to 1
loop:3  delta_time:0.582256     used_time:44.884        remain_time:14.116      sample:78       frame_number:4
loop:4  delta_time:0.58198      used_time:45.466        remain_time:13.534      sample:79       frame_number:5
loop:5  delta_time:0.624523     used_time:46.0905       remain_time:12.9095     sample:80       frame_number:6
loop:6  delta_time:0.577362     used_time:46.6679       remain_time:12.3321     sample:81       frame_number:7
loop:7  delta_time:0.698838     used_time:47.3667       remain_time:11.6333     sample:82       frame_number:8
loop:8  delta_time:0.715949     used_time:48.0827       remain_time:10.9173     sample:83       frame_number:9
loop:9  delta_time:0.642925     used_time:48.7256       remain_time:10.2744     sample:84       frame_number:10
loop:10 delta_time:0.68358      used_time:49.4092       remain_time:9.59081     sample:85       frame_number:11
loop:11 delta_time:0.751073     used_time:50.1603       remain_time:8.83973     sample:86       frame_number:12
loop:12 delta_time:0.695762     used_time:50.856        remain_time:8.14397     sample:87       frame_number:13
loop:13 delta_time:0.633601     used_time:51.4896       remain_time:7.51037     sample:88       frame_number:14
loop:14 delta_time:0.59843      used_time:52.0881       remain_time:6.91194     sample:89       frame_number:15
loop:15 delta_time:0.574086     used_time:52.6621       remain_time:6.33785     sample:90       frame_number:16
loop:16 delta_time:0.580198     used_time:53.2423       remain_time:5.75766     sample:91       frame_number:17
loop:17 delta_time:0.607064     used_time:53.8494       remain_time:5.15059     sample:92       frame_number:18
loop:18 delta_time:0.582077     used_time:54.4315       remain_time:4.56851     sample:93       frame_number:19
loop:19 delta_time:0.578316     used_time:55.0098       remain_time:3.9902      sample:94       frame_number:20
loop:20 delta_time:0.588111     used_time:55.5979       remain_time:3.40209     sample:95       frame_number:21
loop:21 delta_time:0.585826     used_time:56.1837       remain_time:2.81626     sample:96       frame_number:22
loop:22 delta_time:0.593987     used_time:56.7777       remain_time:2.22227     sample:97       frame_number:23
loop:23 delta_time:0.576887     used_time:57.3546       remain_time:1.64539     sample:98       frame_number:24
loop:24 delta_time:0.591639     used_time:57.9463       remain_time:1.05375     sample:99       frame_number:25
loop:25 delta_time:0.584559     used_time:58.5308       remain_time:0.46919     sample:100      frame_number:26
[info] reached time limit! used_time: 58.5308 sec. remain_time: 0.46919 sec.
[info] total_time: 59.0004 sec.
[info] total_sample: 100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant