Hi everyone, I didn’t post enything yet in blender artist but a couple of months ago i decided to try realyze a game with UPBGE (because i’m a blender user and i thought “wow, would be great if i could do everything from start to finish inside a single software”) and decided to use only logic nodes (I sincerely hate logic bricks, they are really too chaotic for me) and i find nodes a great way for keep things organized and clear, also because i can keep different type of code separated.
BUT in the last few days i found a huge problem of performance.
in the video i add the enemy by pressing a button, and after a few enemies added the frame rate goes down.
I’m using low poly models and low res texture (max 800 tris and 256x256 texture each model:i’m trying to recreate psx style) and obviously not using lights and shadows. I will use a low frame rate, maximum 30 fps, mut i’m testing at 60 fps because if i have no problem i will also have no problem at 30 fps (I suppose).
i thought that with that low res models and texture everything would be fine, but i was wrong; i also noticed that the biggest problem is the logic, so my questions are:
1:why is logic so heavy? the enemy has 7 node trees applied, , the player 8, one for the attack, one for running , one for the gravity (he has the character physic type with maximum fall speed but wasn’t enough)ecc…and a state machine node tree wich decide wich tree should stop or start (the enemy, and also the player, have a string type property called “state” that decide that). Is this the problem? too many trees?
2:the player has a node tree for targeting the enemy, when the enemy is targeted his life bar and the “target cursor” shoul appear with the “set visible” node, but i must delete this funcion becouse if i use it the frame rate goes down of of something like 15 fps, and the rasterizer achieve more than 40%, why?
3: what are depsgraph, outside and how precizely rasterizer works? how to deal with all those thingg and optimize the game?
i have an Asus rog strix
16gb ram
6gb vram
Core i7 8750H
gtx 1060
i know is not a great computer, but i thought it should be enough to do those such of things.
thank you and sorry for my english