scp-fs2open / scp-fs2open/fs2open.github.com
Performance plumets when using very small time scales during beam hits
- Dominant language
- C++
- Stars
- 487
- Forks
- 184
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 44
Description
Most evident using the screencam script, if you go into slowmo while anything is getting hit with a beam your framerate will soon being dropping rapidly.
I went poking through the code and it looks to me like both beam_handle_collisions in beam.cpp and weapon_hit in weapons.cpp create(or can create in the case of piercing effects) particle effects sources for all colliding beams every time they're run. If that read of them is correct, then that seems a likely source of the issue, and also dangerous to performance in general for high framerate players. I also think they might BOTH be making effects for the same things, but I'm not so sure about that one.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.