pmndrs / pmndrs/ecctrl

ecctrl有时不稳定

Open
#91 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
797
Forks
98
Avg merge
8m
Merged PRs (30d)
1

Description

在切换到其他页面,没有聚焦到项目网页的情况下会出现人物有即将掉出地图趋势(人物在地面上抖动,像是不停陷入地面又因物理引擎被挤回来的感觉),有时候也会掉出地图。在集成多人在线功能websockt的时候,如果接收到ws消息并修改其他玩家位置频率过快,也会出现同样的问题。我猜测是算力过大导致。如果修改其他玩家的位置频率更快,比如1ms修改一次。人物甚至会像卡在地上,移动类似滑冰一样,而且失去跳跃能力。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the instability when switching away from the project page and when multiplayer messages update another player's position at high frequency. Inspect the controller's physics and network-update entry points, then verify that characters no longer jitter, fall through the map, slide, or lose jumping under these conditions.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
computer-graphics, game-dev, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.