cpu usage / screen refreshing

You find a bug! You post it here!

cpu usage / screen refreshing

Postby S Pittaway on Thu Apr 14, 2011 6:46 pm

hi,

i am on the latest update...

is everything ok in the screen redraw code?

i seem to chew up a lot of cpu 20-30% whenever the screen is refreshed (key up/down etc) even on a simple screen...


i noticed it when i was testing a new media player classic pligin - when the position changed oin the play time (plugin>xmpc>%positionhhmmss%) xlobby does not show it.

is that correct or a bug?

to try and get round this i coded a call to invalidate all buttons containing text "plugin>mpc" (i did this in a few plugin back on freelobby) this now got my sata showing/updating properly but hammed the cpu (above issue).

if all is well, how do i make redraw nicely like the time/audioplayer position fields do (they update every sec but xlobby is using 0-2% cpu) ?
S Pittaway
 
Posts: 713
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: cpu usage / screen refreshing

Postby Bill Lott on Fri Apr 15, 2011 1:39 am

MPC Plugin????

Is it available for download or testing? Can you tell us what features it has? I have been using MPC as my player for a couple years and have coded some basic functions as events (play / pause / chapter / etc) but would be very interested in trying a plugin.

Thanks,
Bill Lott
________________
Now Playing: Image
Bill Lott
 
Posts: 318
Joined: Sun Sep 05, 2004 3:25 pm
Location: Louisville, KY

Re: cpu usage / screen refreshing

Postby S Pittaway on Fri Apr 15, 2011 7:52 am

There was an old xMpc plugin, but i could not get it to work, so i knocked one up using the web interface.

If you try it (you can launch it from the options dialogue) it should do everything on the control page (i tested the mute button and it worked :) that was enuff for me).

to be honest i was more interested in pulling info back to xlobby (position, length, volume etc), i also wanted xlobby to save the play position and restart at the same point (MPC only remembers the last 20 files...)

It will pull back the following:
muted
volume
status
filepath
title
lengthms
lengthhhmmss
positionms
positionhhmmss
Last edited by S Pittaway on Wed Apr 27, 2011 8:36 am, edited 1 time in total.
S Pittaway
 
Posts: 713
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: cpu usage / screen refreshing

Postby S Pittaway on Wed Apr 27, 2011 8:35 am

bump, this is really obvious on my pc...

what about the second bit, how do i get the text from my plugin to update every second (without calling invalidate button)?
S Pittaway
 
Posts: 713
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: cpu usage / screen refreshing

Postby S Pittaway on Thu May 05, 2011 11:41 am

bumpy
S Pittaway
 
Posts: 713
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: cpu usage / screen refreshing

Postby S Pittaway on Fri Oct 14, 2011 8:15 am

I was not intercepting the invalidate message that was being sent from xlobby after i updated the status...

Which caused my plugin to update its status...

And then i did not intercept the invalide message...

Repeat and use up the CPU, my fault :)
S Pittaway
 
Posts: 713
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: cpu usage / screen refreshing

Postby S Pittaway on Tue Oct 25, 2011 2:31 pm

I had this happen again recently (on Win 7 64BIT, cpu was stuck at ~25%) and i could not get to the bottom of it...

In the end i re-installed xlobby to c:\xloobby ran the auto updates and now the system is fine.

Not sure if anyone knows the cause.
S Pittaway
 
Posts: 713
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England


Return to Bug Tracking / Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron