百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

Frent

> 数据库
开源

一种高性能组件导向的 ECS 方案,可无缝支持稀疏集和原型。

179 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

一种高性能组件导向的 ECS 方案,可无缝支持稀疏集和原型。

Frent

A high-performance, low-memory, archetype-based EC framework/ECS library for C#.

Whaaaat?! Aren't there enough ECS libraries out there!

While Frent's implementation is a hybrid archetype- and sparse-set-based ECS, that's not why Frent was made. Frent is primarily an EC framework—an Entity Component framework—that lets you use composition for code reuse rather than inheritance with minimal boilerplate. Write components that include behavior, lifetime management, and events while enjoying all the performance benefits of an ECS.

Want to write systems anyway? Frent also has a Systems API that lets you query entities in the style of an ECS.

[!WARNING] Frent is still in beta and is not completely stable.

Quick Example

csharp
using System;
using Frent;
using Frent.Components;
using System.Numerics;

using World world = new World();
Entity entity = world.Create(new(Vector2.Zero), new(Vector2.One));

// Call Update to run the update functions of your components.
world.Update();

// Position is (1, 1)
Console.WriteLine(entity.Get());

record struct Position(Vector2 Value);
record struct Velocity(Vector2 Delta) : IUpdate
{
    public void Update(ref Position position) => position.Value += Delta;
}

Wanna learn more? Dive into the docs or check out the Interactive Demo!

There are also samples for MonoGame, Unity, and Godot.

Performance

Frent is a lot faster than most C# ECS implementations - Benchmark.

Features

  • Tiny entity struct the size of 8 bytes
  • Up to 127 components per entity
  • struct & class as components
  • Pass in uniform data automatically, such as deltaTime
  • AOT Compatible & Zero reflection
  • Links (Entity relationships)
  • Tags
  • Events
  • Command buffer
  • Multithreading
  • Seamless storage in sparse sets or archetypes
  • Automatic structural change management
  • Create entities anytime - no command buffer
  • EntityMarshal and WorldMarshal for even faster speeds!

Contributing

Wanna help?

Report bugs, suggest APIs, and give general feedback. Just open an issue before starting a large feature.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#csharpdata-oriented-designdotnet10dotnet8

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库