BY: killah DATE: 2004-Jun-12 04:37 SUBJECT: EE core & VU1 synchronization problems?Hello folks, I've started to translate my CPU and VU0 based code to CPU, VU0 and VU1 code, because I've wanted to achieve a better performance but I've found some problems with this.
The result of the new code should be a rotating pyramid without texture and illuminated using "Phong lighting model". All the lighting work is made by CPU-VU0, then I send the transformation matrix, the vertexs and the colors to the VIF (I also send the FLUSH instruction before the MSCAL instruction for wait for the end of microprogram) and, at last VU1 unpacks all, transforms the vertexs and sends transformed vertexs and colors to the GS with xgkick instruction. The problem is that sometimes when the pyramid rotates there's some kind of flickering (not always) and this happens only when I enable lighting.
At first, I thought that was double buffer problem, but if I use sps2UScreenSwap and then sps2UScreenClear It can't be any problem, or not? that's why I thought that It may be a synchronization problem between EE core and VU1. Is that the problem? if is that, can anybody tell me what can I do?
Thanks a lot |