Frent 0.5.7-beta
dotnet add package Frent --version 0.5.7-beta
NuGet\Install-Package Frent -Version 0.5.7-beta
<PackageReference Include="Frent" Version="0.5.7-beta" />
<PackageVersion Include="Frent" Version="0.5.7-beta" />
<PackageReference Include="Frent" />
paket add Frent --version 0.5.7-beta
#r "nuget: Frent, 0.5.7-beta"
#:package Frent@0.5.7-beta
#addin nuget:?package=Frent&version=0.5.7-beta&prerelease
#tool nuget:?package=Frent&version=0.5.7-beta&prerelease
Frent
A high performance, low memory usage, archetyped based EC framework/ECS library for C#.
Whaaaat?! Aren't there enough ECS libraries out there!
While Frent's implementation is an archetype based ECS, thats not why Frent was made. Frent is primarily an EC framework - Entity Component framework - that allows you to easily 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 anyways? Frent also has a Systems API that allows you to query entities in the style of an ECS.
Frent is still in beta and is not completely stable.
Quick Example
using Frent;
using Frent.Systems;
using Frent.Components;
using System.Numerics;
using World world = new World();
Entity entity = world.Create<Position, Velocity>(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<Position>());
record struct Position(Vector2 Value);
record struct Velocity(Vector2 Delta) : IComponent<Position>
{
public void Update(ref Position position) => position.Value += Delta;
}
Wanna learn more? Dive into the docs or check out the Interactive Demo!
There is 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 e.g.,
deltaTime
- AOT Compatible & Zero reflection
- Tags
- Events
- Command buffer
- Multithreading
- Seamless storage in sparse sets or archetypes
- Automatic structual change management
-
EntityMarshal
andWorldMarshal
for even faster speeds!
Contributing
Wanna help?
Report bugs, suggest APIs, and give general feedback. Just open an issue before starting a large feature.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- CommunityToolkit.HighPerformance (>= 8.4.0)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- System.Collections.Immutable (>= 10.0.0-preview.1.25080.5)
- System.Memory (>= 4.6.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.0)
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Frent:
Package | Downloads |
---|---|
Waddle
A simple data-driven game engine built on .NET. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Frent:
Repository | Stars |
---|---|
Doraku/Ecs.CSharp.Benchmark
Benchmarks of some C# ECS frameworks.
|
Version | Downloads | Last Updated | |
---|---|---|---|
0.5.7-beta | 64 | 8/23/2025 | |
0.5.6.5-beta | 93 | 8/17/2025 | |
0.5.6.4-beta | 202 | 8/5/2025 | |
0.5.6.3-beta | 201 | 7/7/2025 | |
0.5.6.2-beta | 84 | 6/28/2025 | |
0.5.6.1-beta | 65 | 6/20/2025 | |
0.5.6-beta | 122 | 6/19/2025 | |
0.5.5.1-beta | 247 | 4/14/2025 | |
0.5.5-beta | 179 | 4/14/2025 | |
0.5.4.3-beta | 896 | 3/25/2025 | |
0.5.4.2-beta | 459 | 3/24/2025 | |
0.5.4.1-beta | 455 | 3/24/2025 | |
0.5.4-beta | 266 | 3/23/2025 | |
0.5.3.1-beta | 261 | 3/19/2025 | |
0.5.3-beta | 141 | 3/19/2025 | |
0.5.2-beta | 168 | 3/14/2025 | |
0.5.1-beta | 148 | 3/9/2025 | |
0.5.0-beta | 112 | 3/9/2025 | |
0.4.2.1-beta | 203 | 3/3/2025 | |
0.4.2-beta | 192 | 3/3/2025 | |
0.4.1.2-beta | 98 | 3/2/2025 | |
0.4.1.1-beta | 88 | 3/1/2025 | |
0.4.1-beta | 119 | 2/24/2025 | |
0.4.0-beta | 276 | 2/17/2025 | |
0.3.3.3-beta | 87 | 2/3/2025 | |
0.3.3.2-beta | 90 | 1/31/2025 | |
0.3.3.1-beta | 77 | 1/30/2025 | |
0.3.3-beta | 75 | 1/30/2025 | |
0.3.2-beta | 87 | 1/20/2025 | |
0.3.1-beta | 94 | 1/20/2025 | |
0.3.0-beta | 76 | 1/20/2025 | |
0.2.3-alpha | 81 | 1/5/2025 | |
0.2.2-alpha | 85 | 1/5/2025 | |
0.2.1-alpha | 79 | 1/5/2025 | |
0.2.0-alpha | 90 | 1/4/2025 | |
0.1.4-alpha | 100 | 1/4/2025 | |
0.1.3-alpha | 96 | 1/4/2025 | |
0.1.2-alpha | 92 | 1/1/2025 | |
0.1.1-alpha | 89 | 1/1/2025 | |
0.1.0-alpha | 100 | 12/31/2024 |