mirror of
https://github.com/enso-org/enso.git
synced 2024-12-20 20:31:33 +03:00
c9806496ee
Some small improvements relating to rendering: - Add a debug option: `-debug.pixel-read-period`. This can be used to measure the performance impact of checking the pointer location on different hardware. [On my development box, it makes no difference to performance.] (Closes #5490). - Unbind pixel pack buffers after each use. This is recommended practice. It has no performance impact on my machine, and allows SpectorJS to run (`-debug.enable-spector`). (Closes #5941). Also, simplify the profiling CLI: the `profile.load-profile` and `profile.save-profile` options have been renamed to `profile.load`/`profile.save`; `profile.save` now has a default filename, so you can capture a profile at any time in Electron with Ctrl+Alt+P and it will be written to `profile.json`.
17 lines
482 B
Rust
17 lines
482 B
Rust
const CONFIG_PATH: &str = "../config.yaml";
|
|
|
|
const JSON_CONFIG: &[&str] = &[
|
|
"../../../lib/rust/ensogl/pack/js/src/runner/config.json",
|
|
"../../../app/ide-desktop/lib/content-config/src/config.json",
|
|
];
|
|
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed={CONFIG_PATH}");
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
for path in JSON_CONFIG {
|
|
println!("cargo:rerun-if-changed={path}");
|
|
}
|
|
|
|
config_reader::generate_config_module_from_yaml(CONFIG_PATH);
|
|
}
|