Skip to content

Implement LatCom#42

Merged
JasperGeurtz merged 15 commits into
developfrom
newlatcom
Oct 5, 2019
Merged

Implement LatCom#42
JasperGeurtz merged 15 commits into
developfrom
newlatcom

Conversation

@JasperGeurtz

@JasperGeurtz JasperGeurtz commented Sep 29, 2019

Copy link
Copy Markdown
Collaborator

Implements LatCom with minimal performance (speed/memory) impact for non-LatCom users.

Implementation required only to apply current frame LatCom, e.g. the next frame is already handled by just reading of the server. Current frame LatCom is done by saving the current LatCom affected value in a Cache object that invalidates on the next frame (e.g. only valid on the frame it was changed).

Added:

  • CommandTemp class, inspired by CommandTemp.h
  • Cache<T> class (and subclasses) which stores a LatCom value
  • Player/Unitself class/containers which have a collection of internal Player/Unit values that are affected by LatCom
  • LatencyListener testclass which gives some debug info (also tested in BWMirror to compare values with JBWAPI)

Non-LatCom users should not be negatively affected because the "self" instances get lazily instanciated. (e.g. only if you actually use latcom)

No difference anymore between BWMirror & JBWAPI both using LatCom

2019-09-30 00_53_42 (except for Unit ID's ofcourse)

closes #6

@lgtm-com

lgtm-com Bot commented Sep 29, 2019

Copy link
Copy Markdown

This pull request introduces 9 alerts when merging 5862bc4 into c200b55 - view on LGTM.com

new alerts:

  • 8 for Dereferenced variable may be null
  • 1 for Dereferenced variable is always null

@lgtm-com

lgtm-com Bot commented Sep 29, 2019

Copy link
Copy Markdown

This pull request introduces 7 alerts when merging d1a6767 into c200b55 - view on LGTM.com

new alerts:

  • 7 for Dereferenced variable may be null

@JasperGeurtz
JasperGeurtz merged commit 1233d4f into develop Oct 5, 2019
@JasperGeurtz
JasperGeurtz deleted the newlatcom branch October 6, 2019 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

implement client side latcom

2 participants