mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 21:35:04 +02:00
Reduce High Mips request size
This commit is contained in:
parent
c7ac82b4e2
commit
19d5414c30
1 changed files with 2 additions and 1 deletions
|
@ -422,9 +422,10 @@ void NetworkTexture::startMipRangeRequest(uint16_t low, uint16_t high) {
|
|||
|
||||
_ktxMipLevelRangeInFlight = { low, high };
|
||||
if (isHighMipRequest) {
|
||||
static const int HIGH_MIP_MAX_SIZE = 5516;
|
||||
// This is a special case where we load the high 7 mips
|
||||
ByteRange range;
|
||||
range.fromInclusive = -15000;
|
||||
range.fromInclusive = -HIGH_MIP_MAX_SIZE;
|
||||
_ktxMipRequest->setByteRange(range);
|
||||
} else {
|
||||
ByteRange range;
|
||||
|
|
Loading…
Reference in a new issue