mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Reduced the CPU usage of the sent block selector algorithm
This commit is contained in:
parent
16fdb42590
commit
223b379348
11 changed files with 355 additions and 55 deletions
|
@ -244,6 +244,9 @@ inline f32 readF1000(std::istream &is)
|
|||
{
|
||||
char buf[2];
|
||||
is.read(buf, 2);
|
||||
// TODO: verify if this gets rid of the valgrind warning
|
||||
//if(is.gcount() != 2)
|
||||
// return 0;
|
||||
return readF1000((u8*)buf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue