karaoke-dev / osu-framework-font

Unofficial support for extra font effect.
MIT License
5 stars 3 forks source link

Fix frame buffer not being recycled issue #64

Open andy840119 opened 2 years ago

andy840119 commented 2 years ago

image Should check the state the will recycle buffer frame (Ctrl+F3)

andy840119 commented 2 years ago

image And it will cause lots of resources on rendering.

andy840119 commented 2 years ago

Also, have the issue that the frame buffer does not being recycled.

image See the frame buffer amount in osu.

andy840119 commented 2 years ago

image image

And notice that might have some duplicated frame buffer. WIll have extra 3 frame buffers if apply a CRT shader in karaoke sprite text.

andy840119 commented 2 years ago

Also got no idea why ApplyState runs three times with the same state.

[update]: it's caused by osu-framework.

andy840119 commented 2 years ago

Should test this package first.