pixie/tests/benchmark_blends.nim
Ryan Oldenburg c83b3215d0 Revert "call direct"
This reverts commit 669dc48be9.
2020-12-09 02:04:01 -06:00

17 lines
295 B
Nim

import benchy, chroma, pixie, vmath
let
a = newImage(1000, 1000)
b = newImage(1000, 1000)
b.fill(rgba(127, 127, 127, 255))
timeIt "bmNormal":
a.draw(b, vec2(0, 0), bmNormal)
timeIt "bmDarken":
a.draw(b, vec2(0, 0), bmDarken)
timeIt "bmMultiply":
a.draw(b, vec2(0, 0), bmMultiply)