[SOLVED] Extrange performance problem working with tiles

Hi,

I'm working in a tile platform game. The world consist in a grid and there`re one tile in each cell.
The tiles are static objects. There're several types of tiles, but the maximum size allowed for each tile is the cell size. So the tiles not overlap (or maybe only the edges)

All works fine until I put a tile in an specific cell. Then the performance drops from 60 fps to 10 !!!
The problem isn't the number of tiles, because if I put more tiles in other places all works properly.

I ran the profiler and I see that the problem is in that methods:

30.4 % b2ContactSolver::solveTOIPositionConstraints()
11.4 % b2ContactSolver::solveVelocityConstraints()

Why does this effect happens only in a certain position of the grid and how I can solve this problem?

Anybody could help me?

Thanks in advance

P.D Solved. the problem was a stupid mistake. I was creating a dynamic enemy in the same positions than the tile, so it was trapped by the tiles.

Original thread: https://box2d.org/forum/viewtopic.php?t=8154