Skip to content

Commit

Permalink
enable 32 bit indices in imgui
Browse files Browse the repository at this point in the history
This may reduce performance, but I was able to get implot to run out of
vertices with a relatively small dataset of a few tens of thousands of
points.

The upstream is working on this:

epezent/implot#41
  • Loading branch information
charlesdaniels committed Jun 10, 2020
1 parent bde1fb7 commit ec5a214
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion imgui/imconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
// Your renderer back-end will need to support it (most example renderer back-ends support both 16/32-bit indices).
// Another way to allow large meshes while keeping 16-bit indices is to handle ImDrawCmd::VtxOffset in your renderer.
// Read about ImGuiBackendFlags_RendererHasVtxOffset for details.
//#define ImDrawIdx unsigned int
#define ImDrawIdx unsigned int

//---- Override ImDrawCallback signature (will need to modify renderer back-ends accordingly)
//struct ImDrawList;
Expand Down
1 change: 1 addition & 0 deletions imgui/implot.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
// ImPlot v0.2 WIP

#pragma once

#include "imgui.h"
#include "implotFlags.h"

Expand Down

0 comments on commit ec5a214

Please sign in to comment.