Hi everyone and happy new year.
I'm working on a Tower Defense that has some inspiration from Kingdom Rush and I meet a big performance issue with Bullet Behavior at the start of my project :(
Example:
After creating a Tower, I can spawn 2 knights who reach a defined position. While moving, my FPS drop from 50 to 30 FPS until they reach position. Once they arrived, my FPS is going back to 50.
I can create 5 towers, and each time, I have this drop of performance and back to 50 when they do not move.
I also noticed that my enemy (only one) is taking 20 FPS alone. I was surprised by it. I spawn this enemy 10 times each 3 sec in a random position and they follow the path where I put a few sprites to change the angle of motion.
I was expecting that it would have been much efficient that the Pathfinding behavior which has the issue of having all the sprites ending on a line.
By doing the test with 5 Towers (10 knights) and 10 enemies, my FPS drops a lot.
I tried to add a short delay in order to check every X sec instead of every tick, but it remains slow.
I really don't understand how I can fix this performance issue, especially that I'm testing on PC :(
I also tested it on another PC and it is the same.
I read a lot of threads about performance issue but I did not find any idea for me :(
I also set the project and layout at 1024,768
My sprites are 32x32 or 64x64 and the biggest for the castle is 256x256.
I only have one sprite (knight) that has a weird format 64x101.
I hope someone may have an idea because I really wanted to do a TD game with Construct 2
Cheers everyone