Add closest_power_of_2 func and implement mix_rate/latency on OS X

This commit is contained in:
Marcelo Fernandez
2017-08-17 18:35:55 -03:00
parent 33c1d25517
commit eab850524e
27 changed files with 144 additions and 95 deletions

View File

@@ -1460,7 +1460,7 @@ void BakedLightBaker::_make_octree_texture() {
} else {
baked_light_texture_w=otex_w;
baked_light_texture_h=nearest_power_of_2(row);
baked_light_texture_h=next_power_of_2(row);
print_line("w: "+itos(otex_w));
print_line("h: "+itos(row));
break;
@@ -1558,7 +1558,7 @@ void BakedLightBaker::_make_octree_texture() {
}
baked_octree_texture_h=nearest_power_of_2(baked_octree_texture_h);
baked_octree_texture_h=next_power_of_2(baked_octree_texture_h);
print_line("RESULT! "+itos(baked_octree_texture_w)+","+itos(baked_octree_texture_h));
}