I try to add some analysis module inside one of the training course (course 05), which is based on the following toolkit from Imagination.
The InitApplication function is called once when an application starts and should be used for all general application initialisation. The InitView function is called when the graphics context is created, so should be used for graphics API specific set up (i.e. anything that will need to be reset if the graphics context is lost and needs to be regained).
Any functions that need to be called repeatedly can be called within the RenderScene function.
What is your analysis module trying to achieve? Can you provide a simple case that experiences this issue? (it will be too difficult to isolate the problem when discussing vast changes you have made over dozens of additional .cpp files)