minimized flash game continues to load CPU

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

minimized flash game continues to load CPU

Post by Student » Tue May 21, 2019 12:37 pm

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: 1614
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: minimized flash game continues to load CPU

Post by salvadordf » Wed May 22, 2019 5:40 pm

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: 19
Joined: Tue Aug 07, 2018 9:20 am

Re: minimized flash game continues to load CPU

Post by Student » Wed May 22, 2019 6:35 pm

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: 1614
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: minimized flash game continues to load CPU

Post by salvadordf » Wed May 22, 2019 7:58 pm

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: 19
Joined: Tue Aug 07, 2018 9:20 am

Re: minimized flash game continues to load CPU

Post by Student » Wed May 22, 2019 8:28 pm

Thanks you, help this

Code: Select all

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

Post Reply