MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / update_stats

Method update_stats

framework/vulkan_sample.h:1769–1785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1767
1768template <vkb::BindingType bindingType>
1769inline void VulkanSample<bindingType>::update_stats(float delta_time)
1770{
1771 if (stats)
1772 {
1773 stats->update(delta_time);
1774
1775 static float stats_view_count = 0.0f;
1776 stats_view_count += delta_time;
1777
1778 // Reset every STATS_VIEW_RESET_TIME seconds
1779 if (stats_view_count > STATS_VIEW_RESET_TIME)
1780 {
1781 reset_stats_view();
1782 stats_view_count = 0.0f;
1783 }
1784 }
1785}
1786
1787} // namespace vkb

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected