On Tue, 17 Nov 2026 16:07:21 GMT, Lukasz Kostyra <[email protected]> wrote:

>> modules/javafx.graphics/src/main/native-prism-d3d12/D3D12NativeMesh.cpp line 
>> 67:
>> 
>>> 65: bool NativeMesh::BuildGeometryBuffers(const void* vbData, size_t 
>>> vbSize, const void* ibData, size_t ibSize, DXGI_FORMAT ibFormat)
>>> 66: {
>>> 67:     if (mVertexBuffer)
>> 
>> Can we avoid disposing of vertex/index buffer when the count is not changed?
>> I see we do that in D3D9 and other pipelines.
>
> We could do that. Current implementation was a bit simplified because data 
> uploading was done only on initialization in `D3D12::Buffer`. I will adjust 
> this code and provide some helper to upload data to GPU-only buffers.
> 
> I wonder if it would help some performance tests too...

IIRC in Metal this helped for performance tests, we are using shared storage 
mode in Metal and can directly copy the CPU data into the shared buffer.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/2346#discussion_r4602350203

Reply via email to