Giter Site home page Giter Site logo

guyuqaq / gc_fix-cpu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from banxiaserver/gc_fix

0.0 0.0 0.0 55.8 MB

License: GNU Affero General Public License v3.0

Shell 0.46% JavaScript 0.02% Python 0.62% Java 95.34% TypeScript 2.50% HTML 0.31% Batchfile 0.18% SCSS 0.57%

gc_fix-cpu's Introduction

  • 这是我们半夏公益服使用的部分核心文件

  • 这个仓库存在的目的只有一个——优化玩家在获得大量物品时服务器的cpu占用率

  • 原版gc在玩家使用 /give all 指令时会将cpu占满 且还会持续几秒到十几秒的高占用率

  • 现在使用此仓库的核心 玩家在使用 /give all 指令时只会占用不到百分之五的cpu

  • 创建这个仓库的原因

  • 本仓库使用的所有代码均来自官方核心 我只是对部分代码进行了取舍以修复hyper分支的注册问题+玩家重进游戏不储存背包物品和dev分支的高cpu占用问题

  • 可以点击这里下载自动编译的核心

  • 如果开一段时间后就崩服 且控制台输入什么都没有反应 则代表着默认分配的内存已被消耗完 可以将启动代码改为java -Xms初始分配的内存g -Xmx分配最大内存g -jar 核心名字.jar 来增加分配给gc使用的内存 内存泄露是原版gc就存在的问题 我无法修复


快速开始(全自动)

构建

Grasscutter使用Gradle来处理依赖和构建。

前置:

Windows
git clone --recurse-submodules https://github.com/Grasscutters/Grasscutter.git
cd Grasscutter
.\gradlew.bat # 设置开发环境
.\gradlew jar # 编译
Linux(GNU)
git clone --recurse-submodules https://github.com/Grasscutters/Grasscutter.git
cd Grasscutter
chmod +x gradlew
./gradlew jar # 编译

你可以在项目的根目录找到输出的jar。

gc_fix-cpu's People

Contributors

kingrainbow44 avatar birdulon avatar 4benj avatar github-actions[bot] avatar yazawazi avatar akka0 avatar scooterboo avatar memetrollsxd avatar gentlespoon avatar tesutarin avatar hamusuke0323 avatar mlgmxyysd avatar ganyuslefthorn avatar zhaodice avatar omg-xtao avatar baisugar avatar mingjun97 avatar notthorny avatar spikehd avatar exzork avatar jie65535 avatar alt3ri avatar kengxxiao avatar lunaticwhat avatar realheart avatar totallynotondre avatar xotakfr avatar secretboy-smr avatar startforkiller avatar eternalcomet avatar

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.