> With your attached mdemo.c: > the picture will follow the mouse to move. > But the timer is still not work.
Ok - we know for sure that timers aren't working for PSP for nano-X or mwin. I have looked at the code for src/nanox/srvmain.c::GsSelect() and src/mwin/winmain.c::MwSelect() and can see that they do NOT call the required GdGetNextTimeout() and GdTimeout() functions, so this was never implemented. Now test mdemo.c with CONTROLS 1 and TIMERDEMO 0. Does it crash? If not, then we are fine, we just need to finish timers. If it crashes, then this is what the first version did, where the WM_TIMER callback is failing and crashing. (It may be just hanging, since the timer never fires) > x86 linux is fine for both. Yes I have tested that. Regards, Greg ===== Original Message ===== --------------------------------------------------------------------- To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org For additional commands, e-mail: nanogui-h...@linuxhacker.orgyutao - I have cleaned up mdemo.c for your debugging the PSP port. I have attached the new version from git. It defaults to the older 3d graph demo, with timer. This is set with: #define GRAPH3D 1 If PSP has floating point, it should run as-is. If it doesn't work, change the following: #define TIMERDEMO 0 This will turn off the timer support. This may be our PSP port problem. You can also go back to the original mdemo.c showing win32 controls by doing: #define GRAPH3D 0 #define CONTROLS 1 Then try running this with TIMERDEMO set to 0. (this should work) Then try running this with TIMEREMO set to 1. If this fails, we know it's in the timer code, which is in: src/mwin/winmain.c::MsSelect() Depending on which modes mdemo works or fails, we should know the problem. Since nxclock doesn't update, it could be timer. Regards, Greg --------------------------------------- 购物券大派送! --------------------------------------------------------------------- To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org For additional commands, e-mail: nanogui-h...@linuxhacker.org