-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Glide size is now determined by cpu usage. #4146
base: master
Are you sure you want to change the base?
Conversation
imo it is somewhat user facing, if the effect is making movement feel smoother, even if it's a minor one. |
var/error = max((last_cpu - 100) / 100 * world.tick_lag, 0) | ||
|
||
for(var/atom/movable/trouble as anything in GLOB.gliding_atoms) | ||
if(world.time >= trouble.glide_stopping_time || QDELETED(trouble)) |
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(world.time >= trouble.glide_stopping_time || QDELETED(trouble)) | |
if(world.time >= trouble.glide_stopping_time || QDELING(trouble)) |
QDELETED(trouble)
is just (isnull(trouble) || QDELING(trouble))
- and we'd runtime here anyways if trouble
is null.
// cache for sonic speed | ||
cpu_values[cpu_index] = real_cpu | ||
GLOB.avg_cpu_values[cpu_index] = avg_cpu | ||
GLOB.cpu_index = WRAP(cpu_index + 1, 1, CPU_SIZE + 1) |
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.
GLOB.cpu_index = WRAP(cpu_index + 1, 1, CPU_SIZE + 1) | |
WRAP_UP(GLOB.cpu_index, CPU_SIZE + 1) |
double check that it's the same tho, just to be 100% sure
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.
Would need to run a few number tests but I think WRAP_UP would be different
Co-authored-by: Lucy <lucy@absolucy.moe>
have you gotten anywhere with this? I was unable to satisfyingly update glide size mid movement to account for ticks. needed to burn more time working out the exact timings. if you have I would like to steal that |
About The Pull Request
Non player facing change so no CL
tgstation/tgstation#85971
Why It's Good For The Game
Makes movement feel smoother
Changelog
🆑
/:cl: