Code Monkey home page Code Monkey logo

locksteplogsystem's Introduction

LockStepLogSystem

帧同步日志系统,一个基于C#的高效帧同步日志系统,核心思路参考《腾讯游戏编程精粹》。 测试用例放在了TestScript文件夹下。

使用方式(两种方式)

  1. AutoInsert->自动插入日志代码。 该方法在原有的C#函数上插入日志语句,如果函数头里包含语句FSPDebuger.IgnoreTrack(),则不会有日志语句插入。
  2. AutoInsert->IL注入日志代码
    这个方法利用IL注入(使用第三方cecil库)的方式,插入日志语句,不会污染C#代码。
    注入后的dll在/Library/ScriptAssemblies/Test.dll中,用ILSpy可以看到修改后代码。

日志的运行方式

  1. PCMode
    单机模式下只会计算累加校验和
  2. PVPMode
    PVP下会计算累加校验和,还有保留前50帧的压缩数据
  3. CheckMode
    Check模式下计算累加校验和,还有一场战斗的所有日志

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.