Skip to content
This repository was archived by the owner on Jan 23, 2020. It is now read-only.
/ Affinity Public archive

[OLD] A learning project disguised as a tech demo with 10,000 pirate boats fighting each other that uses my first attempt at a data-oriented entity-component-system.

Notifications You must be signed in to change notification settings

Nybbit/Affinity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a1af696 · Jan 23, 2020

History

5 Commits
Feb 5, 2019
Feb 5, 2019
Feb 5, 2019
Jan 23, 2020

Repository files navigation

Note: This code no longer meets my standards of quality, rather than delete it I'll keep it around as a "code time capsule". Enjoy! 😄

Affinity Banner

What is Affinity?

Affinity is a tech-demo and also a personal learning project. I would deeply appreciate any constructive criticism as to how I can improve my code and why it's an improvement.

Key features

  • Performant data-oriented entity component system
  • AI pirate ships
  • Fast spritesheet generation with texture packing

Benchmarks

NOTE: The benchmark is of an earlier (simpler) version of Affinity, it consists of 10,000 boats wandering around and various zoom levels. You can try it out yourself here. The benchmarks shown below are not all of the benchmarks I recieved but should be representative of the large majority of PCs.

CPU GPU Rounded Average Frametime (µs) Rounded Average FPS Notes
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz NVIDIA GeForce GTX 1060 6GB 3,164 384 Notice the lower CPU clock speed but higher performance when compared to the next benchmark, this CPU is newer and more efficient - clock speed isn't everything
Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz NVIDIA GeForce GTX 1060 6GB 4,180 309 Faster clock speed, older cpu, worse performance
AMD FX(tm)-8350 Eight-Core Processor GeForce GTX 650 Ti 5,641 221 This CPU prefers more cores which unfortunately doesn't help it in the benchmark since the benchmark is single threaded
Intel(R) Core(TM) i3-8130U CPU @ 2.20GHz Intel(R) UHD Graphics 620 5,337 223 A fairly standard laptop
AMD A4-3300M APU with Radeon(tm) HD Graphics AMD Radeon HD 6480G 34,309 31 This is a 9 year old laptop that was not made for gaming or anything

Third Party

About

[OLD] A learning project disguised as a tech demo with 10,000 pirate boats fighting each other that uses my first attempt at a data-oriented entity-component-system.

Resources

Stars

Watchers

Forks

Packages

No packages published