Hi everyone,
I have read Bill Perry’s great article about the features that has the player incorporated on the PSP and I have seen that there could be some issues due to “deep nesting”. I saw a performance hit running the game Im currently developing for the PSP, and after removing all the possible causes of the slow speed I managed to isolate the trouble within a function, but I cant see any of bad practice there, so I wonder if Im understanding badly the words “deep nesting”. Within the function (that is part of a particular class I made), I have only 2 levels depth so the most I have is something like
if(...)
{
if(...)
{
...
}
}
But I also have some access to a 2 dimensional matrix and certain functions that could call access to that matrix, also within this function I call another member functions (one of them calls another function so this is 3 jumps) that is inside same class… well with everything said, could any of those facts I have here be considered as “deep nesting”? or at least facts that could slow the game on the PSP while it runs smooth on the PC.
Any ideas or suggestions are greatly welcome, thanks for your time.
PS I can show you the problematic code if you say so