On 10 April 2018 at 12:29, Józef Kucia joseph.kucia@gmail.com wrote:
It's a small step to reduce unncessary system memory allocations in wined3d. We shouldn't need to allocate system memory to initialize content for GPU resources, instead we should use glClearBuffer() and glClearTexImage().
If it's any help, one approach I've been considering for a while would be to essentially take a page out of the fast clear book, and introduce a WINED3D_LOCATION_CLEARED resource location. It would move the responsibility of actually clearing resources to the location management code, and ultimately the blitter, and would allow skipping clearing resources entirely for cases where resources are subsequently overwritten completely.