TBH I am not sure where the FPS drop comes from. Some profiling showed that lanching Elegon consumes only about 12% of my cpu, and around 6-9% of my VRAM. There should be plenty of memory to run it, at least at 20+ fps. EDIT : After using my nvidia app to profile stats, it appears the game uses 100% of my GPU which seems to confirm too much calculations, and i suspect too many entities updating dynamic light ( more specifically, leafs on all the trees loaded ))
- Tree leaves seems to be reflectng solar light at certain angles. Which means every leaf of every tree does ligth calculation. Im not sure trees should be affected by light at this stage, IMO. Might help a lot on shadow/light calculations if trees had baked in shadow instead of reacting to the sun directionnal light. Might be better to not have directionnal lighting on trees and only ambiant lighting ( hottish during the day, coldish during the night )
I just feel like the whole map is always loaded into VRAM constantly.
Some suggestions that might help optimisation : - Calculate grass movement on shader if its done on CPU ( cant tell here but grass seems to play a big part of my fps drop ). - I see the shadow from the sun update really quick to look smooth, maybe update it on less cycle, even if it makes the shadow move by "steps", it would remove a lot of light/shadow calculation. - Render distance : I should not be seeing moving grass or even fully detailed trees in the depth of my FOV. Also, the whole map should not be loaded at all time ( and i believe its the case here. Having a render distance would help a lot ) - Allow options to remove grass / dynamic lighting. Keep up the good work !
Update : Logged in today to show a friend the project. I think I noticed some changes to how the light behaves and the performance had a 100% upgrade ( running at 15-17 fps which allows me to actually test and play the game and tweak existing settings to see if I can get up to around 25 ! ). IDK if you did anything in particular but it seems you did considering how the light feels different now. Edit : Considering the changes you made to performances, some zones actually run at 25 fps. I now average around 21-22 fps. Other zones with more grass and trees run at like 18-19, but overall that is a crazy 300-400% perfo gain. Amazing thank you. I can enjoy the whole game now.