mmo

command module
v0.0.0-...-f03d92c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

概述

模拟mmo的场景结构搭建逻辑
模拟每个场景一个携程或者所有场景同一个携程的逻辑

单携程多携程对比

单携程总CPU消耗较少
并发并不能带来纯计算能力的提升
只是减少相互干扰,提高并发性

合理的线程模型

线程池
多个场景共用一个线程	

space

100场景 100怪/场景
使用遍历搜索
	updateAttack消耗30s
使用space搜索
	updateAttack消耗6s

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
servers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL