Skip to content

Commit

Permalink
Examples: DirectX12: Reduced number of frame in flight from 3 to 2 in…
Browse files Browse the repository at this point in the history
… provided example, to reduce latency.
  • Loading branch information
ocornut committed Jan 15, 2025
1 parent 0e21bde commit 6684984
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Breaking changes:
Other changes:

- ImDrawList: texture baked storage for thick line reduced from ~64x64 to ~32x32. (#3245)
- Examples: DirectX12: Reduced number of frame in flight from 3 to 2 in
provided example, to reduce latency.
- Backends: DirectX12: Texture upload use the command queue provided in
ImGui_ImplDX12_InitInfo instead of creating its own.

Expand Down
4 changes: 2 additions & 2 deletions examples/example_win32_directx12/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#endif

// Config for example app
static const int APP_NUM_FRAMES_IN_FLIGHT = 3;
static const int APP_NUM_BACK_BUFFERS = 3;
static const int APP_NUM_FRAMES_IN_FLIGHT = 2;
static const int APP_NUM_BACK_BUFFERS = 2;
static const int APP_SRV_HEAP_SIZE = 64;

struct FrameContext
Expand Down

0 comments on commit 6684984

Please sign in to comment.