Why is pev_v_angle so choppy?
1 Attachment(s)
Hi,
I'm recording a player's view vectors and importing them into another application for analysis. Currently I update a list of all the view vectors each server_frame, and when the fire button has been pressed and released, I save it to a file. Although it works, the results are very choppy. Is this an coding error or just how the HL1 engine works? Also included is a screenshot of vertical viewvec recording's plot. Notice how choppy it is. Here's my server_frame. recordAngles records the angles to disk. Code:
//anges stuffJames |
Re: Why is pev_v_angle so choppy?
It's most likely caused when using "server_frame()". Also, the way you're using "get_players()" it would only return the first player it finds.
Code:
|
Re: Why is pev_v_angle so choppy?
If so, which event should I listen to? I already tried the client_PostThink, which didn't work out so well...
I only needed the first non-bot player's data, as I'm testing stuff and there's only myself on the server. (except the bots) When I start analyzing cal demos I'm probably going to make it support up to 32 players. |
Re: Why is pev_v_angle so choppy?
Well.. Maybe a task, although more efficient then "server_frame()" it can only call a function as fast as 0.1 seconds.
Example: Code:
|
| All times are GMT -4. The time now is 11:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.