1
0
Fork 0
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:
sfan5 2024-12-11 14:44:49 +01:00
parent 612d4f9656
commit d2a7875b5b
11 changed files with 267 additions and 144 deletions

View file

@ -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;