Game slow down after few minutes

Hi , So my canvas game on windows platform goes slow after few minutes (30-45 minutes ) . When I tried to figure out , I found that handle count keep on increasing and reach upto few thousands. I read few blogs where mentioned handle counts slow down your application . So can you please help how to debug or resolve this issue.

What code do you use to know handle count?
I would like to check my projects.

You can check inside TaskManager

Wow, so you truly mean few thousands of processes.
I can see only 1 after running any of my openfl projects on windows target, but maybe I should use more detailed software like Process Explorer or something.

Could it be this bug?

…our canvas graphics renderer uses createPattern and triggered this problem in Firefox in the past… I don’t know if its been resolved in the browser?