mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
temporarily disable use_error_threshold
This commit is contained in:
parent
9b0507a4c6
commit
3c3fbf8446
@ -274,6 +274,9 @@ write_reals(Datagram &datagram, const float *array, int length) {
|
|||||||
// First, check the compressability.
|
// First, check the compressability.
|
||||||
bool reject_compression = false;
|
bool reject_compression = false;
|
||||||
|
|
||||||
|
// This logic needs a closer examination. Not sure it's useful
|
||||||
|
// as-is.
|
||||||
|
/*
|
||||||
if (_use_error_threshold) {
|
if (_use_error_threshold) {
|
||||||
// Don't encode the data if it moves too erratically.
|
// Don't encode the data if it moves too erratically.
|
||||||
float error = get_compressability(array, length);
|
float error = get_compressability(array, length);
|
||||||
@ -283,6 +286,7 @@ write_reals(Datagram &datagram, const float *array, int length) {
|
|||||||
reject_compression = true;
|
reject_compression = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
datagram.add_bool(reject_compression);
|
datagram.add_bool(reject_compression);
|
||||||
if (reject_compression) {
|
if (reject_compression) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user