Introduction
uMiner is a Unity plugin that allows a new kind of revenue model for the developers!
Game developers can utilize players’ unused GPU resources for mining cryptocurrencies (ethereum or ubiq only for now) in Unity during game play.
Include uMiner in your game and all the players will generate revenue for you just by playing.
Must have addition to every free-to-play game and great alternative to ads!
Ethereum algorithm (Dagger-Hashimoto) is a memory hard problem, this means that mining only uses 5% to 10% CPU and most of the GPU processing power is still usable. The GPU RAM bandwidth is the bottleneck. This means that the uMiner can be used inside almost every game!
uMiner is a work in progress and I’ll release it some day.
Features
-
uMiner is a complete C# rewrite of the ethminer ( GitHub - ethereum-mining/ethminer: Ethereum miner with OpenCL, CUDA and stratum support )
-
No unsafe or C++ code
-
Performance is almost the same as the current C++ version of the ethminer
-
uMiner is 20MH/s vs 22MH/s native on my GeForce 1080 GPU
-
C# console version runs identical 22MH/s so it is probably Unity overhead
-
Multi GPU support could be added if needed (do gamers really use multiple gpus?)
-
Low CPU overhead
-
Dev fee is first accepted share per player session for me
-
Rest of the shares are yours
-
Gaming performance takes a hit, but it can be implemented fully into a game and still have 60 fps
-
Included demo runs 55fps on my computer with unlimited mining
-
Mining speed can be limited to increase resources for gaming (more fps)
-
Only 3rd party library used is Cloo ( https://cloo.sourceforge.io/ )
-
OpenCL based GPU calculations
-
Full source code is included
-
Free! (Except the dev fee share)
-
Should work in all the platforms that support OpenCL and have enough GPU RAM
-
Uses WebClient and Unity Json to communicate with a mining farm
Prerequisites
- GPU with at least 3GB of RAM
Mining? Cryptocurrency? Ethereum?
Please read at least the following articles before asking here:
http://ethereum-mining.wikia.com/wiki/Ethereum_Mining_Wikia
Usage
I’ll update this after the asset is released.
Demo
https://1drv.ms/u/s!AhwxGBCpbRndhe4YiKjlZrQHtm9OOw
It is just a default asset store survival shooter demo with uMiner plugin.
It starts by generating a light.dat file (it takes 10 seconds or so, then it is cached on the harddrive for faster access next time). Then it starts mining to a Ubiq pool under my wallet, for testing purposes.
UI displays fps, current MH/s and accepted / rejected shares.
Press spacebar during the gameplay to pause or restart mining progress.
Exiting game probably crashes.
License
This plugin cannot be used to mine cryptocurrencies without players consent.
This is a free asset so the dev fee for me is mandatory.
Please report rejected shares or any comments or wishes here.
BR,
Tommi