Skip to content

Commit

Permalink
benchmark/app_aobench.rb: complete commented code to write the image …
Browse files Browse the repository at this point in the history
…to a file

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
eregon committed Jan 21, 2019
1 parent 32e259f commit f2d6338
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmark/app_aobench.rb
Expand Up @@ -282,9 +282,11 @@ def render(w, h, nsubsamples)

alias printf_orig printf
def printf *args
# $fp.printf(*args)
end

# File.open("ao.ppm", "w") do |fp|
# $fp = fp
printf("P6\n")
printf("%d %d\n", IMAGE_WIDTH, IMAGE_HEIGHT)
printf("255\n")
Expand Down

0 comments on commit f2d6338

Please sign in to comment.