mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-23 05:51:07 +00:00
Fast track zero partition selection
This commit is contained in:
parent
d13cca3362
commit
a58501f56f
|
@ -141,6 +141,9 @@ namespace ASTCC {
|
||||||
|
|
||||||
static int32 SelectPartition(int32 seed, int32 x, int32 y, int32 z,
|
static int32 SelectPartition(int32 seed, int32 x, int32 y, int32 z,
|
||||||
int32 partitionCount, int32 smallBlock) {
|
int32 partitionCount, int32 smallBlock) {
|
||||||
|
if(1 == partitionCount)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if(smallBlock) {
|
if(smallBlock) {
|
||||||
x <<= 1;
|
x <<= 1;
|
||||||
y <<= 1;
|
y <<= 1;
|
||||||
|
|
Loading…
Reference in a new issue