This commit is contained in:
Branimir Karadžić 2017-11-02 22:09:03 -07:00
parent 6480a62844
commit 1f86df4c54
1 changed files with 3 additions and 7 deletions

View File

@ -196,13 +196,13 @@ void showExampleDialog(entry::AppI* _app, const char* _errorText)
ImVec4 gpuColor(0.5f, 0.5f, 1.0f, 1.0f);
const float itemHeight = ImGui::GetTextLineHeightWithSpacing();
const double toCpuMs = 1000.0/double(stats->cpuTimerFreq);
const double toGpuMs = 1000.0/double(stats->gpuTimerFreq);
const float scale = 3.0f;
if (ImGui::ListBoxHeader("Encoders", ImVec2(ImGui::GetWindowWidth(), stats->numEncoders*itemHeight) ) )
{
ImGuiListClipper clipper(stats->numEncoders, itemHeight);
const double toCpuMs = 1000.0/double(stats->cpuTimerFreq);
const double toGpuMs = 1000.0/double(stats->gpuTimerFreq);
const float scale = 3.0f;
while (clipper.Step() )
{
@ -239,10 +239,6 @@ void showExampleDialog(entry::AppI* _app, const char* _errorText)
{
ImGuiListClipper clipper(stats->numViews, itemHeight);
const double toCpuMs = 1000.0/double(stats->cpuTimerFreq);
const double toGpuMs = 1000.0/double(stats->gpuTimerFreq);
const float scale = 3.0f;
while (clipper.Step() )
{
for (int32_t pos = clipper.DisplayStart; pos < clipper.DisplayEnd; ++pos)