Running a high end machine and taking a look at Love demo projects:
lovalanche: Essentially 0% CPU usage, uses GPU I assume, Good!
no: Essentially math.. no difficult animation.. click detection.. 50% CPU usage!! Very Bad
particles: uses GPU, very basic input detection... 50% CPU usage again, Very Bad
What is the story? Is checking for input causing 50% CPU usage on a high end machine?
CPU Usage in Demo Projects?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: CPU Usage in Demo Projects?
I'm assuming it just amounts to the examples not including love.timer.sleep(10).
Would you happen to have a dual core computer? That might explain the 50% (completely taking up one of your cores).
Would you happen to have a dual core computer? That might explain the 50% (completely taking up one of your cores).
-
- Prole
- Posts: 6
- Joined: Sun Oct 11, 2009 1:53 am
Re: CPU Usage in Demo Projects?
Yes, I am running 2 cores. Good thinking.
Seems to have dropped CPU down to 15%.
Seems to have dropped CPU down to 15%.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: CPU Usage in Demo Projects?
love.timer.sleep( ms )
0.5.0 Documentation wrote: Delays execution for the specified amount of milliseconds. Tragically, the precision varies from system to system, and is generally not very good. Do not expect to get better precision than the nearest 10ms.
Re: CPU Usage in Demo Projects?
LÖVE will take all the CPU it can get (unless told otherwise with love.timer.sleep). Lovalanche should also use 50%, and I find it very odd that it's essentially zero. Could you have misread?
Who is online
Users browsing this forum: Amazon [Bot], Google [Bot], Semrush [Bot] and 9 guests