[Pipmak-Users] Re: Weird speed problem on laptop
Status: Alpha
Brought to you by:
cwalther
From: Christian W. <cwa...@gm...> - 2006-03-27 08:27:06
|
Urs Holzer wrote: > After starting Pipmak, the framerate is very slow (about 10 seconds per > frame). But if I resize the window, I have to wait a few seconds and > then the framerate becomes high and one even could play the game. But > after about 20 seconds, the fun is over and the framerate falls back > and the game becomes unplayable. No idea. Sounds like some OpenGL resource is being exhausted after a while, but what could it be? Does it also happen when you stay at one node without doing anything (i.e. no new textures or display lists are being uploaded to OpenGL)? Can you run Pipmak through some performance analysis tool to see where the time is spent? I don't know if something like Shark (http://developer.apple.com/tools/sharkoptimize.html) exists for Linux. It records a callstack of the running application at a regular interval and can then analyze that data in various ways, including a callstack-vs-time graph. Two other things you can try to improve rendering performance, tell me if these have any influence on the behavior you're seeing: - Turn off interpolation (I key). - Switch between power-of-two and rectangle textures, if your renderer supports both. By default, rectangle textures are used if supported (power-of-two textures are always available). Call the Lua function pipmak_internal.texrect() without arguments to query whether rectangle textures are on, and call it with true or false to try to turn them on or off. If not supported, turning them on will silently fail. -Christian |