On 12/19/05, Kelvin Lawson <[EMAIL PROTECTED]> wrote: > Hi Jay, > > Thanks for the feedback. So do you think this is an improvement on the > previous performance? If it's difficult to tell with the new 1/4 second > display-dropping code then let me know and I'll take it out. > > If it's an improvement then maybe the thing to do is divide the screen > into smaller segments. > > I've made a few updates tonight, if you could help by trying them out > that would be great. Although the last version only scaled the modified > tiles, it still did a full update() on the entire screen. This one only > updates the modified tile. > > I've also removed a small delay that was in there to reduce CPU load > (which stops it constantly polling for the current song time). I'm > wondering whether some systems can hit this and block for a long time, > doing no work at all. It will take your CPU load up to 100% if it wasn't > already. > > I also added some profiling code in there using the hotshot module. It > hasn't turned out to be useful unfortunately - according to the > documentation it doesn't play well with threads. The accumulated time it > spews out is totally incorrect for instance. I've disabled it in there > for now. > > Cheers, > Kelvin. > > > > At the 15 fps you set it to, it can just about keep up with SC8119-1, > > but I can see the pauses. Again, this is at: > > > > screen #0: > > print screen: no > > dimensions: 1280x1024 pixels (361x271 millimeters) > > resolution: 90x96 dots per inch > > depths (7): 24, 1, 4, 8, 15, 16, 32 > > root window id: 0x60 > > depth of root window: 24 planes > > number of colormaps: minimum 1, maximum 1 > > default colormap: 0x20 > > default number of colormap cells: 256 > > preallocated pixels: black 0, white 16777215 > > options: backing-store NO, save-unders NO > > largest cursor: 64x64 > > current input event mask: 0xfa4031 > > KeyPressMask EnterWindowMask LeaveWindowMask > > KeymapStateMask StructureNotifyMask > > SubstructureNotifyMask > > SubstructureRedirectMask FocusChangeMask > > PropertyChangeMask > > ColormapChangeMask > > number of visuals: 8 > > default visual id: 0x23 > > visual: > > visual id: 0x23 > > class: TrueColor > > depth: 24 planes > > available colormap entries: 256 per subfield > > red, green, blue masks: 0xff0000, 0xff00, 0xff > > significant bits in color specification: 8 bits > > > > Hope that's informative enough. Have you profiled it? Can you profile > > it? Can I profile it? :-)
[swallows tongue] You're running this at 1280x1024? Heh :) I'd been running shows at 1024x768 and not quite using full screen. Hrmmm... Kelvin, I'll give the new code a try too. In full screen 640x480, btw, the thing is blazing fast. Same with 800x600. -- Looking for something to read? Visit http://willfe.com/ ... it's easy, safe, and fun for the whole family! ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Pykaraoke-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
