Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

minimized flash game continues to load CPU

Post Reply
Student
Posts: 72
Joined: Tue Aug 07, 2018 9:20 am

minimized flash game continues to load CPU

Post by Student »

Hi, I tested run flash game on chrome, chromium, briskbard. On chrome/chromium when minimized app or go to on other tab then flash significantly reduce load cpu, and on briskbard unchanged load CPU. Why do you think so? How chrome frozen tabs without suspended process?
Image
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: minimized flash game continues to load CPU

Post by salvadordf »

Thank you for the bug report! :D

I just fixed that issue and it will be included in next BriskBard version.

Meanwhile, check the "Enable hardware acceleration" box in the web browser configuration to improve the browser performance.
Student
Posts: 72
Joined: Tue Aug 07, 2018 9:20 am

Re: minimized flash game continues to load CPU

Post by Student »

In your demo minibrowser show the solution, how to implement the solution to flash is not loaded CPU, when minimized app.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: minimized flash game continues to load CPU

Post by salvadordf »

Set TCEFWindowParent.Visible and TCEFWindowParent.Enabled to FALSE when the tab is not visible.

If necessary set TCEFWindowParent.width and TCEFWindowParent.height to 0.
Student
Posts: 72
Joined: Tue Aug 07, 2018 9:20 am

Re: minimized flash game continues to load CPU

Post by Student »

Thanks you, help this

Code: Select all

TCEFWindowParent.Align:=alNone;
TCEFWindowParent.Width:=0;
TCEFWindowParent.Height:=0;
Post Reply