Per-frame UI callbacks (OnUpdate/OnRender/...) looked up methods with
PyObject_GetAttrString, building a new PyString each call. Names are
now interned once and cached; Py_AtExit drops the cache so a
Py_Finalize/Py_Initialize cycle never reuses stale objects.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The per-batch transforms are already uploaded to the storage buffer, so
draws use firstInstance = batch index and the 288-byte uniform header is
pushed once per frame; fragment params are pushed only on change.
Texture eviction sorts inactive images once instead of rescanning the
map per evicted image.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Texture() and Resident() stage their bytes on the CPU; Render copies
everything in one transfer buffer and copy pass (plus mip generation)
at the start of its own command buffer instead of acquiring and
submitting a command buffer per resource.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Colour as UBYTE4_NORM, normals as SHORT4_NORM (unit direction, the
shader renormalises), bones as UBYTE4 and weights as USHORT4_NORM.
Shader inputs keep their float/uint types, so the shaders are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RenderSceneGPU resolves each draw's texture while classifying it and
sorts opaque draws by the texture handle instead of comparing paths;
invalid draws are dropped before sorting. Bumps sdk (skin cache).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Render3DDraw/HardwareBatch carry first_index/index_count; resident
meshes are uploaded once per model and groups draw with firstIndex.
Bumps sdk to 9ec7fa1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Textures were created with one level while the sampler requested linear
mip filtering (and max_lod defaulted to 0). Allocate the full chain,
generate it after upload, and let the sampler use it, so minified
terrain and props stop shimmering and read less bandwidth. Budget
accounting includes the extra third.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Network actor ground shadows use the actor's own IsVisible frustum
test (its bounds cover the shadow) instead of building 17-vertex
meshes with terrain queries for every actor on the map.
- Shadow ring uses a precomputed sin/cos table and reserved streams.
- Frame and network draw vectors reserve last frame's peak count and
append network draws in one insert.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Font: walk UTF-8 codepoints in place instead of building a vector;
reuse the texture-cache key buffer on the hit path.
- Text tails: show/ShowAll test isShowing (kept equal to list
membership) instead of a linear find per tail, which made the
per-frame ShowAllTextTail O(N^2); memoize label widths measured by
both Arrange and Render.
- Tail painter reuses one CGraphicTextInstance and font name.
- CGraphicTextInstance::Render no longer copies the text unless secret.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Render3DDraw/HardwareBatch hold the SDK's shared palette instead of
copying 16 floats per bone per draw, and HardwareScene re-pushes the
uniform only when the palette pointer changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With more than 1024 live meshes the fixed threshold rescanned the whole
cache on every ToRender3DDraw call.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sdk de8fa40: B-spline loop window, cubic curves, degree-0 first-knot>t.
ActorInstance passes the motion's loop flag to SetAnimationLoop so looping
motions sample across the seam instead of clamping to the end knots.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Correct selection orientation, game-entry lifecycle, mounted NPCs, labels and skill panels. Add the native GPU scene path, resident geometry, bounded texture and Python caches, and collision broad phase.
Pin the independently maintained Metin2 SDK through a submodule and document reproducible setup. Include rendering regressions and macOS packaging improvements.
Validation: client Debug build and 12 targeted client tests passed; SDK build and all 14 SDK tests passed.
- gr2: BitKnit2 decompression, 64-bit LE files, compressed curves
- net: remaining GamePhase handlers, generated GC packet table
- python: event/chat/chr/minimap/guild/quest/messenger/shop-search and
other native modules ported against the AVA2 Windows client
- render: D3D8 fixed-function lighting in Gr2ModelRenderer, terrain
without baked shade; cape/NPC equipment attachment
- tests + audits updated; docs/PORT-PLAN.md and WINDOWS-PARITY.md
Batch 4 (render pipeline: background.*, app.RenderGame/UpdateGame,
camera bindings, main.cpp fake-content removal) is still in progress.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>