-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added customisable update rate for unit quad positions to reduce CPU …
…load.
- Loading branch information
1 parent
7c57e61
commit db68239
Showing
3 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db68239
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If lua could force a quad update then I expect the really critical edge cases would be fixable with a cheap update when particular units fire.
We already did this in ZK for the old version of the bug https://github.com/ZeroK-RTS/Zero-K/blob/master/scripts/spiderantiheavy.lua#L157. A dedicated callout rather than some hax would be an improvement.
db68239
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The really critical edge cases could also be solved by giving every weapon type a tag that increases projectile collision search radius. This would have to include beamlasers to be effective.