Add multi-viewport support, FPS governor, mana stone looting, and viewport focus fixes

Engine:
- ViewportPlatformBackend: Win32 platform backend for ImGui multi-viewport (pop-out windows)
- ViewportRendererBackend: D3D9 swap chain rendering for viewport windows
- ViewportPlatformBackend: WS_EX_NOACTIVATE + MA_NOACTIVATE always + SW_SHOWNA — viewport
  windows never steal focus; single click works without prior window activation
- ImGuiController/RynthCoreShell: wire multi-viewport callbacks, map always renders
  independent of main dashboard visibility
- Win32Backend: improved input handling for viewport windows
- EndSceneHook: FPS governor (focused/background targets), periodic FPS measurement
- D3D9VTable: vtable discovery improvements
- PluginContract/PluginManager/RynthCoreHost: expose UseObjectOn, GetItemType,
  GetObjectIntProperty to plugins

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
tombohar 2026-04-19 20:29:34 -04:00
commit 0d8579b796
24 changed files with 1876 additions and 38 deletions

View file

@ -70,6 +70,9 @@ internal static class CreateObjectHooks
private static IntPtr CreateObjectDetour(IntPtr thisPtr, uint objectId, IntPtr visualDesc, IntPtr physicsDesc, IntPtr weenieDesc)
{
if (objectId != 0 && visualDesc != IntPtr.Zero)
PaletteCache.ReadFromObjDesc(objectId, visualDesc);
IntPtr result = _originalCreateObject!(thisPtr, objectId, visualDesc, physicsDesc, weenieDesc);
if (result == IntPtr.Zero || objectId == 0)
return result;