Git Product home page Git Product logo

Comments (20)

andrewmd5 avatar andrewmd5 commented on July 23, 2024

Too much as compared too? It seems pretty average, Eclipse, Visual Studios, Deluge, Filezilla all use about the same. Borderless Gaming is never "inactive" its always checking if your processes are launched or not.

from borderless-gaming.

Razunter avatar Razunter commented on July 23, 2024

FileZilla uses 0% in inactive state.
Maybe Borderless Gaming should checks processes to often?
Anyway, this should be improved.

from borderless-gaming.

andrewmd5 avatar andrewmd5 commented on July 23, 2024

Yes, but while active they all use around the same range of cpu, 4 to 5. Deluge even hits 8 to 9 while seeding or downloading. As I said, Borderless Gaming is never inactive, if there was no realtime process checking it remain at less than 1%, but in this case it it always active.

You need to first understand how CPU calculation works:

The theoretical Max for this counter is (# of processors * 100)

Assume the following:

A single CPU and we are looking at a single point of time

(processor\%processor time) = 10%

(processor\%user time) = 8%

(processor\% privilege time) = 2%

(process\% processor time\your application) = 80%

Your application is using 80% of the (processor% user time) which is (8*.8)=6.4% of the CPU

If you have multiple processors they you will need to divide the (process% processor time\your application) by the number of processors to determine what will be charged to % user time.

So in the end that 4-5% is more like 1% across all your cores, this is nothing worth enduring a major code rewrite for. Lower end PC's have no issue with thread management and if you're on a Intel Core i7-3770K this is literally a non-issue. Skype and steam idle use the same amount of CPU.

from borderless-gaming.

Razunter avatar Razunter commented on July 23, 2024

Skype and steam idle use the same amount of CPU.

Steam with lots of games uses 0%, Skype with lots of contacts uses 0%...
Even ProcessKiller app in active state uses 0.5% and it refreshes process list often.

My CPU usage screenshot: http://i.imgur.com/PqyYbUe.png

from borderless-gaming.

andrewmd5 avatar andrewmd5 commented on July 23, 2024

You still are not grasping what the task manager is actually showing you. Please re-read what I said.

from borderless-gaming.

madpew avatar madpew commented on July 23, 2024

Neither Steam nor Skype actually monitor or process their games/contacts so that is a really bad comparison. While ProcessKiller IS monitoring the processes (somewhat comparable), it doesn't care about WindowHandles at all. Finding the MainWindowHandle to a process is the "heavy-lifting" task that produces the load-spikes.

from borderless-gaming.

andrewmd5 avatar andrewmd5 commented on July 23, 2024

Issue solved in latest release.

from borderless-gaming.

Waester avatar Waester commented on July 23, 2024

High CPU usage returned on version 7+, version 6.5 is still ok.
(Not high cpu, more like constant cpu on 5%+)

from borderless-gaming.

psouza4 avatar psouza4 commented on July 23, 2024

I would find out if there's an unresponsive app running on your computer. New methods of enumerating window properties were added to Borderless Gaming 7.5+ that could cause an increase in CPU usage a window was misbehaving or unresponsive. You can troubleshoot by closing various programs to see if CPU usage reduces.

from borderless-gaming.

 avatar commented on July 23, 2024

For me the CPU usage is around 20% when idle, no borderless windows running.

from borderless-gaming.

psouza4 avatar psouza4 commented on July 23, 2024

Then you likely have a misbehaving app that isn't responding to the Win32
APIs for reading process windows and titles.

I would investigate by trying to locate the misbehaving application.

On Tue, Jul 14, 2015 at 5:50 AM, SnowGabe [email protected] wrote:

For me the CPU usage is around 20%. This is too much.


Reply to this email directly or view it on GitHub
#51 (comment)
.

-Pete

from borderless-gaming.

 avatar commented on July 23, 2024

@psouza4 Do you have any suggestions how to find that application? Any log that I could attach?

from borderless-gaming.

Southpaw018 avatar Southpaw018 commented on July 23, 2024

Just installed and can confirm that BG is averaging 25.1% processor time and 3.9% user time at all times with Automatic Processing enabled, and 24.6% processor time and 3.4% user time with Automatic Processing disabled. These are running 90 sec averages from perfmon.

Upon disabling Automatic Processing, overall CPU use does drop to ~0% after a few seconds and then remains there for a few more seconds, but then resumes the average values listed. The short 0% period is *not factored in to the averages above.

This tells me that the high idle CPU usage is not, as stated earlier in this thread, due to misbehaving applications. Nor is it negligible. This issue should not be closed.

bg cpu usage

from borderless-gaming.

psouza4 avatar psouza4 commented on July 23, 2024

Nobody's closed this issue and myself and other developers are actively discussing methods to work around the problem. Almost all of the CPU usage is from Windows hanging when we ask it to use a native API to request the window caption for all the running applications -- if any of the running applications on your computer are sleeping on the main UI thread (a giant no-no, but happens a lot with lazy or poor programming), Windows will hang for a long time before aborting back to our application. During this time, Windows will report that our application is using a lot of CPU while waiting for Windows to respond with caption text. This is also why the problem does not occur on versions prior to 7.x, when we only tracked the process binary name and not caption text.

When we have a solid workaround for polling caption information from misbehaving applications, we'll let you know and we'll update this issue accordingly.

from borderless-gaming.

Southpaw018 avatar Southpaw018 commented on July 23, 2024

Thanks, @psouza4. Some of the comments upthread made it sound like you (collective you) thought it wasn't your issue, or it wasn't important. Good to hear that you're working on it. I'll pony up for the Steam version tonight, and watch for updates and a fix for this. It's the only thing keeping me from switching from my ancient, barely-works-any-more borderless proggy. :)

from borderless-gaming.

psouza4 avatar psouza4 commented on July 23, 2024

I encourage you to update to Borderless Gaming 8.2:

https://github.com/Codeusa/Borderless-Gaming/releases/tag/8.2

Several optimizations have been made to reduce CPU use and improve performance and responsiveness.

from borderless-gaming.

karasuhebi avatar karasuhebi commented on July 23, 2024

I was having issues with CPU utilization as well. I can confirm that BG is behaving A LOT better in v8.2. Cheers!

from borderless-gaming.

psouza4 avatar psouza4 commented on July 23, 2024

Thanks for the update!

from borderless-gaming.

Southpaw018 avatar Southpaw018 commented on July 23, 2024

I'm late to the party, but I can also confirm that BG's CPU usage is greatly improved. I "donated" via Steam purchase a while ago in thanks. Keep up the good work, guys!

from borderless-gaming.

LavenderMoon avatar LavenderMoon commented on July 23, 2024

There's a Steam version? Nice, I'll probably pick it up when I get paid.

from borderless-gaming.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.