mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Group sparse mesh buffers over entire scene for rendering
This commit is contained in:
parent
612d4f9656
commit
d2a7875b5b
11 changed files with 267 additions and 144 deletions
|
@ -121,7 +121,7 @@ int Profiler::print(std::ostream &o, u32 page, u32 pagecount)
|
|||
{
|
||||
GraphValues values;
|
||||
getPage(values, page, pagecount);
|
||||
char buffer[50];
|
||||
char buffer[128];
|
||||
|
||||
for (const auto &i : values) {
|
||||
o << " " << i.first << " ";
|
||||
|
@ -132,7 +132,7 @@ int Profiler::print(std::ostream &o, u32 page, u32 pagecount)
|
|||
|
||||
{
|
||||
// Padding
|
||||
s32 space = std::max(0, 44 - (s32)i.first.size());
|
||||
s32 space = std::max(0, 46 - (s32)i.first.size());
|
||||
memset(buffer, '_', space);
|
||||
buffer[space] = '\0';
|
||||
o << buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue