test: NetworkTickSystem test#630
Conversation
|
It's pretty late (too late?) to put in the release, but I'm just offering it, if we want it. Otherwise, no big deal, this can go in |
| // check overall number of ticks is within one tick of the expected value | ||
| Assert.IsTrue(Math.Abs(expectedTicks - ticks) < 2); | ||
|
|
||
| yield return null; |
There was a problem hiding this comment.
you don't need this here :)
There was a problem hiding this comment.
addressed, thanks
| private float m_SleepInterval = 0.001f; | ||
| private float m_TickInterval = 0.010f; | ||
|
|
||
| public void Dispose() |
There was a problem hiding this comment.
minor: you might want to consider using [TearDown] void Teardown() { ... } instead of Dispose() but both would work fine.
There was a problem hiding this comment.
0xFA11
left a comment
There was a problem hiding this comment.
it does look safe to me but I'll defer to @mattwalsh-unity to decide whether or not we should get this in for release/0.1.0 — we definitely want this in develop regardless :) 🚀
| { | ||
| m_TickSystem = new NetworkTickSystem(m_TickInterval); | ||
|
|
||
| ushort tick0 = m_TickSystem.GetTick(); |
There was a problem hiding this comment.
Standards Suggestion ( minor nit-pick related )
When you have the time, it would be more standards compliant to replace all of the locally scoped variable declarations as "var" and not the actual type.
Example:
From this: ushort tick0 = m_TickSystem.GetTick();
To this: var tick0 = m_TickSystem.GetTick();
There are several places this could be applied within VerifyTickSystem
NoelStephensUnity
left a comment
There was a problem hiding this comment.
Other than my one comment, it looks good to me!
* fix: implement warning logs on non-owner invoking ServerRpc that requires ownership (#627) * add todo comments * fix: implement warning logs on non-owner invoking ServerRpc that requires ownership * fix: Correcting the profiler names for network vars to be appropriately named. Should address issue #605 (#632) * test: NetworkTickSystem test (#630) * test: NetworkTickSystem test * test: NetworkTickSystem test, removed unneeded code * fix: Fix object traversal assigning instanceIds to none scene objects (#629) * fix: Fix object traversal assigning instanceIds to none scene objects * comment added Co-authored-by: Matt Walsh <matt.walsh@unity3d.com> * fix: Correcting the profiler names for named messages vars to be appropriately named. Should address issue #604 (#634) * fix: prevent OnPerformanceTickData from sending data on null (#614) If something causes an exception it's possible that the profiler never allocates data. in these cases, there is no point in sending data outside of MLAPI * fix: use specified transport channel instead of hardcoded reliablerpc channel (#638) * docs: added release notes to changelog.md (#569) * Add release notes to changelog * docs: added release notes to changelog * Update com.unity.multiplayer.mlapi/CHANGELOG.md Co-authored-by: Luke Stampfli <43687322+LukeStampfli@users.noreply.github.com> * update per review for bitserializer and networkserializer * revised per feedback - API refactor * update remove bitserializer * renaming * Update com.unity.multiplayer.mlapi/CHANGELOG.md Co-authored-by: M. Fatih MAR <mfatihmar@gmail.com> * Update com.unity.multiplayer.mlapi/CHANGELOG.md * Update com.unity.multiplayer.mlapi/CHANGELOG.md * added known issues and scene mgmt fix * revisions per review * profiler final - no more updates * format Co-authored-by: Luke Stampfli <43687322+LukeStampfli@users.noreply.github.com> Co-authored-by: Matt Walsh <69258106+mattwalsh-unity@users.noreply.github.com> Co-authored-by: M. Fatih MAR <mfatihmar@gmail.com> * docs: Update repository/project docs (#636) - Mirror package readme.md in root readme.md - Add repo directory structure description - Remove contributing and code of conduct from package directory * docs: Add content for mlapi manual.md (#639) resolves #553 resolves MTT-534 * fix: Removed per-tick runtime allocations by reusing memory between ticks (#640) PerformanceDataManager reuses PerformanceTickData by resetting per-frame Replaces deferred linq query in PerformanceTickData loop. * fix: fixed network activity occurring outside the core update getting missed in the profiler (#641) Co-authored-by: Matt Walsh <69258106+mattwalsh-unity@users.noreply.github.com> * fix: Resolve an issue where 2019.4 would not properly run ILPP with a clean import (#645) * Add an dummy ILPP to force 2019.4 to proper compilation order * Turning on this test for 2019.4 * Hack -> Workaround rename Co-authored-by: Matt Walsh <matt.walsh@unity3d.com> Co-authored-by: Matt Walsh <69258106+mattwalsh-unity@users.noreply.github.com> * build: add Unity module dependencies explicitly (#648) Co-authored-by: kvassall-unity <68920108+kvassall-unity@users.noreply.github.com> Co-authored-by: Jeffrey Rainy <jeffreyrainy@gmail.com> Co-authored-by: Albin Corén <2108U9@gmail.com> Co-authored-by: Matt Walsh <matt.walsh@unity3d.com> Co-authored-by: Lori Krell <76010626+lkrell@users.noreply.github.com> Co-authored-by: Luke Stampfli <43687322+LukeStampfli@users.noreply.github.com> Co-authored-by: Matt Walsh <69258106+mattwalsh-unity@users.noreply.github.com> Co-authored-by: Jesse Olmer <jesseo@unity3d.com> Co-authored-by: becksebenius-unity <74328025+becksebenius-unity@users.noreply.github.com> Co-authored-by: Andrew Spiering <aspiering@gmail.com>
No description provided.