Skip to content

[BUG]: memory usage will significantly increase too much after change stream resolution in multi-times #1033

@ZhuJun-WHU

Description

@ZhuJun-WHU

Package version

3.1.0-exp.8

Environment

* OS: Windows10
* Unity version: 2022.2.3.45f1c1
* Graphics API: DX11
* Browser: chrome(137.0.7151.104)

Steps To Reproduce

  1. download unity rendering streaming project and samples
  2. unity editor use “WebBrowserInput” scene and run
  3. open "VideoPlayer Sample" in chrome
  4. click button to change stream resolution (custom game logic)
  5. change resolution for mulit times (approximately 50 times, 1920x1080->1280x760->3840x2160->1920x1080), the unity memory usage will increase from 1500M to 3500M

Current Behavior

Memory usage increase too much when change stream resolution in multi times

Expected Behavior

memory usage in a normal range.

such as the first stream resolution is 1920x1080;
when change resolution from 1920x1080 to 3840x2160, the memory usage will be increase;
when change resolution from 3840x2160 to 1920x1080, the memory usage will be decrease;

after many times (more than 30) change resolution to the origin resolution of 1920x1080, the memory usage is not increase too much than initial memory usage.

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions