Hello,
I am testing GPU memory usage in a Construct 3 Windows/WebView2 export.
Test setup:
- One 4K PNG image
- 3 HTML <img> elements using the exact same src
- compared with 3 cloned Construct Sprite object types, each using a copy of the same 4K image
- Windows Task Manager > Details
- monitored process: WebView2 GPU Process > Dedicated GPU memory
Approximate results:
Baseline:
- Dedicated GPU memory: ~142 MB
3 HTML images using the same src:
- Dedicated GPU memory: ~167 MB
- Increase: ~25 MB total
3 cloned Construct Sprite object types:
- Dedicated GPU memory: ~468 MB
- Increase: ~326 MB total
The HTML case appears to share one decoded/GPU resource for the same src. However, the 3 cloned Sprite object types multiply the GPU memory usage of the same image.
Questions:
1. Is this expected behavior?
2. Does each cloned Sprite object type always allocate its own GPU texture, even if its source image is identical?
3. If I instead create 3 instances of one single Sprite object type, will Construct share one GPU texture between all instances?
4. Is this also the expected behavior for Tilemaps using replaceImage()?
5. For large 4K decorative backgrounds/parallax without collision or gameplay interaction, is HTML the recommended memory-efficient approach?
Thank you.