update client visuals, performance and diagnostics
This commit is contained in:
1 parent
361892bf0b
commit
875bab0310
155 files changed
+40855
-421
No files matched your search
@@ -31,7 +31,7 @@ inline void test_server_hud() {
|
||||
ImGui::NewFrame();g_menu_open=true;
|
||||
world::frame frame;frame.valid=true;frame.stamp=GetTickCount64();frame.xp_known=true;frame.xp_level=28;frame.xp_progress=.3f;frame.roster_known=true;
|
||||
for(int i=0;i<25;++i)frame.online_players.push_back("player "+std::to_string(i));world::publish(frame);
|
||||
tab_list list;xp_progress_hud xp;list.on_render();xp.on_render();assert(list.hud_size().x==360 && xp.hud_size().y==54);
|
||||
tab_list list;xp_progress_hud xp;list.on_render();xp.on_render();assert(list.hud_size().x==360 && xp.hud_size().y==43);
|
||||
world::publish({});list.on_render();xp.on_render();list.on_disable();xp.on_disable();
|
||||
assert(!world::collect_roster && !world::collect_xp);
|
||||
ImGui::Render();auto* data=ImGui::GetDrawData();assert(data->TotalVtxCount>100);
|
||||
|
||||
Reference in new issue
Block a user