neoLegacy/Minecraft.Client/Windows64
itsRevela 6c8f463707 fix: restore in-world rendering and aspect ratio via bitblt swap chain
The previous FLIP_DISCARD swap chain configuration was producing broken rendering and a stretched aspect ratio on startup and after window resize, because the closed-source 4J Renderer library holds hidden backbuffer references that prevent ResizeBuffers from succeeding in flip mode. Switches the swap chain to the legacy bitblt DISCARD model with BufferCount=1, which lets the "destroy old, create new" resize path in ResizeD3D work cleanly. In-world rendering and aspect ratio are now correct at launch and across window resizes.

Known regression from this change: screen tearing no longer works when VSync is off. On Windows 10 and 11, bitblt swap chains always go through the DWM compositor, which locks presentation to the monitor refresh rate regardless of the SyncInterval parameter we pass to Present. Every frame the renderer produces above the refresh rate is silently dropped by DWM, which hurts input latency compared to a true uncapped-fps presentation path. The next iteration will reverse-engineer the 4J Renderer struct layout to find where those hidden backbuffer references are stored, release them before ResizeBuffers, and switch back to FLIP_DISCARD with ALLOW_TEARING so real tearing is possible again.

Also removes the dead SwapChainVSyncProxy COM wrapper. The proxy was originally intended to intercept Present calls from the Renderer library for VSync control, but the library hardcodes SyncInterval=1 and does not dispatch Present through the proxy vtable, so it was never actually doing anything useful.
2026-04-11 02:49:53 -05:00
..
4JLibs Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
GameConfig Initial commit 2026-03-01 12:16:08 +08:00
Iggy add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Leaderboards add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Network fix: linux cross-compiling 2026-04-08 13:07:04 +03:00
Sentient feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
Social Initial commit 2026-03-01 12:16:08 +08:00
XML Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
KeyboardMouseInput.cpp add advanced tooltips, F3+H combo, and handle settings (#1389) 2026-03-23 17:54:46 -05:00
KeyboardMouseInput.h Merge branch 'smartcmd:main' into main 2026-03-24 13:59:56 -05:00
Minecraft_Macros.h Initial commit 2026-03-01 12:16:08 +08:00
PostProcesser.cpp add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Resource.h Initial commit 2026-03-01 12:16:08 +08:00
stb_image_write.h Add F2 screenshot functionality and image writing support 2026-03-15 03:47:31 -05:00
Windows64_App.cpp add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Windows64_App.h add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Windows64_Minecraft.cpp fix: restore in-world rendering and aspect ratio via bitblt swap chain 2026-04-11 02:49:53 -05:00
Windows64_UIController.cpp add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Windows64_UIController.h add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Windows64_Xuid.h Split screen, widescreen support, font rendering fixes, ui scaling fixes (#767) 2026-03-08 15:49:50 -05:00
Xbox_BuildVer.h Initial commit 2026-03-01 12:16:08 +08:00