mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Make Color.HRHConv test runtime more reasonable
Previous execution time: 650 ms / 661 ms total (98%) Now: 3 ms / 15 ms total (20%)
This commit is contained in:
parent
0fffd7705f
commit
51385100cd
|
@ -7,7 +7,7 @@
|
|||
|
||||
TEST(Color, HRHConv)
|
||||
{
|
||||
for(int i = 0; i < 0xFFFFFF; i++){
|
||||
for(int i = 0; i < 0xFFFFFF; i+= 0xFF){
|
||||
ColorHSLA hsl = i;
|
||||
ColorRGBA rgb = color_cast<ColorRGBA>(hsl);
|
||||
ColorHSLA hsl2 = color_cast<ColorHSLA>(rgb);
|
||||
|
|
Loading…
Reference in a new issue