2019-01-11 21:27:26 +03:00
|
|
|
# Development notes
|
|
|
|
|
|
|
|
Find packages to upgrade: `cargo outdated -R`
|
2019-01-14 22:29:06 +03:00
|
|
|
|
|
|
|
Diff screencaps: http://www.imagemagick.org/Usage/compare/#methods
|
2019-01-15 01:36:46 +03:00
|
|
|
|
2019-01-24 09:27:32 +03:00
|
|
|
Debug OpenGL calls:
|
|
|
|
apitrace trace --api gl ../target/debug/editor ../data/raw_maps/montlake.abst
|
|
|
|
qapitrace editor.trace
|
|
|
|
apitrace dump editor.trace
|
2019-03-12 00:01:06 +03:00
|
|
|
|
|
|
|
## Profiling
|
|
|
|
|
|
|
|
apt-get install google-perftools libgoogle-perftools-dev
|
|
|
|
|
|
|
|
Follow Usage from https://crates.io/crates/cpuprofiler
|
|
|
|
|
|
|
|
Run editor or headless with --enable_profiler
|
|
|
|
google-pprof --no_strip_temp ../target/debug/editor profile
|
|
|
|
google-pprof --no_strip_temp ../target/release/headless profile
|
|
|
|
top30 --cum
|
2019-03-12 02:23:39 +03:00
|
|
|
|
|
|
|
## Building releases
|
|
|
|
|
|
|
|
Cross-compilation notes: https://github.com/rust-embedded/cross
|
|
|
|
|
|
|
|
cross build --release --target x86_64-pc-windows-gnu --bin editor
|
|
|
|
wine target/x86_64-pc-windows-gnu/release/editor.exe data/maps/montlake_no_edits.abst
|