de flake mix floats test
This commit is contained in:
parent
742d0050f7
commit
ff72022e86
1 changed files with 3 additions and 3 deletions
|
@ -134,9 +134,9 @@ timeIt "mix integers":
|
||||||
doAssert z > 0
|
doAssert z > 0
|
||||||
|
|
||||||
timeIt "mix floats":
|
timeIt "mix floats":
|
||||||
for i in 0 ..< 100000:
|
for i in 0 ..< 1000:
|
||||||
let c = image[0, 0]
|
let c = image[0, 0].color
|
||||||
var z: int
|
var z: int
|
||||||
for t in 0 .. 100:
|
for t in 0 .. 100:
|
||||||
z += mix(c.color, c.color, t.float32 / 100).rgba().a.int
|
z += mix(c, c, t.float32 / 100).rgba().a.int
|
||||||
doAssert z > 0
|
doAssert z > 0
|
||||||
|
|
Loading…
Reference in a new issue