CSA Captain
It is costly. But you're making an FPS so its one of the things you're going to sink cycles in by necessity. From what I'm gathering you're trying to limit the number of updates per frame of object transforms. But I'm not sure that doing this will make that much of a difference. I'm guessing you're using some kind of countdown to count a number of frames (X) depending on the range to the object. Are you then not, apart from the additional computation needed to do the countdown anyway, also introducing a distributed update at the runtime? Or,
At normal update, every object transform is calculated every frame and lerp is used for a smooth transition on screen as 1 calculation.
At the "hybrid" update, for every object, first the distance is checked, the number of frames to wait is calculated and the next update loop is assigned = essentially giving each individual object its own update along with calculations.
This could potentially be a multitude of different updates running parallel as many players will all be at (slightly) different distances and would all requires a different formula running parallel to one another. So what you might gain per frame, you might lose per frame due to the additional load.
Edit: another thing that came to mind, how do you solve the issue of a moving player changing its distance to you and thus requiring an updated "frames to wait" pretty much constantly. If the code is checking for the distance to a player per frame and updating as this value changes, does the code update the frames to wait and as a result reset the countdown? This could cause the stuttering as well.
Last edited by JohnDewitt; 11-09-2017 at 02:40 PM.
I didn't see any thing but him bring up the rifle and I got behind the tree kneeling and looked up and saw the smoke just as I fell. the sound of the shot, the smoke and me falling was instantly. as I said I could have been hit by another but, the guys said it was him behind the tree and they got him. (he was behind another tree, but when he fired he was not) It could have been a lag issue, we had a like situation last nite from only a few feet apart, but this time I prevailed. he missed me and I missed him, we were very close, then I clubbed him to death. but neither of us should have missed those shots, it was as if we were not where we seemed, and when I clubbed him he seemed to be looking in a different direction from where I was. he also said something about lag as I clubbed him.
All governments, everywhere derived its power by the consent of the people. The government you have is by your own consent. Not by those brave grey dead of one hundred and fifty plus years ago.
That is most certainly to do with differences between first person animations and third person ones, not lag.
In short, the first person aim animation is slightly quicker than its third person one currently allowing the player to aim and fire before you can see he’s finished playing the aiming animation.
- Trusty
All governments, everywhere derived its power by the consent of the people. The government you have is by your own consent. Not by those brave grey dead of one hundred and fifty plus years ago.