Im sorry my questions are a bit noob :P.Thats why I thought id post it here so i dont bother people with proper problems and you seem to know alot.
Thanks for the quick reply.I have set the hardware acceleration and doublebuffering.I have read a bit more about threads and queueing and am thinking this might be an issue?How does pygames eventqueue work? couldnt find the library.
Also the problem is not that the drawing is happening to slow,its that it seems as if the events are not queued.
Perhaps a better explanation of my game might help.It has a grid of 1000x1000 objects.
I need to draw a colored square for each depending on a specific attribute of each object.I already have a 'object_state_changed' list so i only redraw objects recently changed.THen the update game system runs a for loop up too 10000 and changes that specific attribute with a random value.Then the update display draws.All this seems to work fine and at a good framerate.BUT my events i handle is mousemotion.if the mouse moves across a square the corresponding grid object's attribute is changed to a specific value.THIS is the part that seems to be going wrong.I can see the update game system happening, but only every now and then the mousemotion update happens.Any ideas why this could be?
I dont know what profiler is or how to use it.
Thanks again
RUaan