diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-12-12 09:15:23 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-12-13 10:29:16 +0900 |
| commit | d01707d4cf53bef1121bc1c7c9ce735d28ab5be3 (patch) | |
| tree | c3e4b9d4563ddb1dc04acfb99e0df690dce3851a | |
| parent | 7b84fd4ce8d0a8dac62e7fa2e09bd3511d2f62ec (diff) | |
| download | mruby-d01707d4cf53bef1121bc1c7c9ce735d28ab5be3.tar.gz mruby-d01707d4cf53bef1121bc1c7c9ce735d28ab5be3.zip | |
benchmark/bm_ao_render.rb: enable specifying the size of the image.
| -rw-r--r-- | benchmark/bm_ao_render.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/bm_ao_render.rb b/benchmark/bm_ao_render.rb index 77620cf07..af9169747 100644 --- a/benchmark/bm_ao_render.rb +++ b/benchmark/bm_ao_render.rb @@ -5,8 +5,8 @@ # mruby version by Hideki Miura # -IMAGE_WIDTH = 64 -IMAGE_HEIGHT = 64 +IMAGE_WIDTH = Integer(ARGV[0] || 64) +IMAGE_HEIGHT = IMAGE_WIDTH NSUBSAMPLES = 2 NAO_SAMPLES = 8 |
