Semaphore Wait for signal Slows Down My Simple Android Game
I recently started to game development and I try to finish my first project which is a simple Android game. Game physics is mostly based on rotating and moving position of background so that player looks like moving. However I am facing a big optimization problem. Background movements and rotations are so laggy and I checked profiler to detect the problem. I observe that in parts where fps frops below 15 there is something called semophere.wait.for.signal which sometimes has 50000ms in total. Does it mean that it is the part where my game slows down or did I understood profiler all wrong. I have uploaded two screenshots from the game which shows the profiler and the problem that I am mentioning. I am open to any suggestions. How can I solve this problem?