Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Use case image format

Przemysław Rekucki edited this page Feb 19, 2019 · 7 revisions

Mining

+[/]
  + gu-mine
  + app/ ...

gu-mine cli spec

$ ./gu-mine spec
  { "currency": 'XMR', "modes": ["CPU", "GPU"], "benchmark": {"CPU": 90, "GPU": 90, "DUAL": 90} }
$ ./gu-mine set-addr "0x979db95461652299c34e15df09441b8dfc4edf7a"
{"Ok": null}
$ ./gu-mine bench-cpu
{"hashrate-cpu": 61}
$ ./gu-mine bench-gpu
{"hashrate-gpu": 505}
$ ./gu-mine bench-dual
{"hashrate-cpu": 62, "hashrate-gpu": 505}
$ ./gu-mine mine-cpu
....
$ ./gu-mine mine-gpu
....
$ ./gu-mine mine-dual
....

Rendering

[+] gu-render
 |- app/ ...
 |- work/ ...
 |- resources/ ...
 |- output/ ...
$ ./gu-render run [spec-path]

main entry point. runs spec-path default work/render-spec.json

Format for render-spec.json

{
 "resolution": [800, 600],
 // optional 
 "samples": 100,
 "frames": [1], // frame number
 "start_task": 1, // todo ?
 "output_format": "PNG",
 "use_compositing": false,
 "crops": [ 
   {"outfilebasename" : "cat", "borders_x" : [ 0.0, 1.0 ], "borders_y" : [ 0.0, 1.0 ]}
 ]
}
Clone this wiki locally