Skip to content

OpenECS 0.7.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 18 Nov 13:48
· 414 commits to dev since this release
126fc49

OpenECS 0.7.0 reloads plugins while a tool runs, so a plugin's author sees a change without a restart. It adds a profiler that shows where the time goes, by plugin and by panel, and a list of every key binding to change. Failures and wrong arguments are told apart, and panels draw only what changed. Seven new standard plugins show a project's files, look at a file, keep a console, match regular expressions, show Markdown, colour code and play video, and ui gains search, menus, sections, graphs and drag and drop.

It comes out with the releases of the two repositories that OpenECS ships, each described in its own release:

  • OpenECS-std 0.7.0: files, viewer, console, regex, markdown, syntax, video, profiler and keys, and ui's new elements and styles.
  • OpenECS-examples 0.7.0: s18_regex to s25_keys, and reloading in c8_state and c2_native.

This is still an early release.

What you can do

Reload plugins. With the setting ecs.reloadPlugins on, OpenECS checks the plugins' files every ecs.reloadInterval seconds, and reloads a plugin once its files stop changing. The prefix then Ctrl+R, or the panel's menu, reloads the focused panel's plugin. A reload disables the plugin and the plugins that depend on it, without asking, and enables them again from their files; their panels keep their state. A native plugin loads from a copy of its library, so its build can replace the library, on Windows too. Plugins do the same with ECSPlugins_Reload and ecs.plugins.reload.

See where the time goes. The prefix then F opens the profiler. While the setting ecs.profile is on, OpenECS measures each pass of the main loop by step, each plugin's own time and each panel's draw. A plugin's time leaves out the plugins it calls, so a Lua panel's calls into draw count as draw's. Plugins read the measures with ECSProfile_Get and ecs.profile.get.

Change every key in one place. The prefix then K opens the key list, which is also in the tool's menu. It shows every binding by scope, and changes, removes or adds a key in the user's settings. Plugins do the same with ECSKey_List, ECSKey_Set and ECSKey_ListFunctions, and ecs.key in Lua.

Tell failures from mistakes. A service's failure, such as a file that cannot be read, is returned to the caller with why: ECS_Fail in C, ecs.fail in Lua, and in Lua nil and the message. A wrong argument is a misuse: ECS_Check and ecs.check report it, and Lua code stops at the line that made the call. The setting ecs.logServiceErrors logs the failures; a tool that expects them turns it off. Duplicate names, bad signatures and keys that are not key combinations are misuses too.

Draw only what changed. A surface keeps its pixels between draws, and kept (surface.kept in Lua) says so. ECSSurface_Changed (surface:changed) names the rectangle that a Draw changed, and only that goes to the texture. A frame draws and presents only the OS windows that changed.

Scale the interface. The setting ecs.scale scales every panel, popup and the core's own interface, live.

See groups apart. The new colour ecs.colorFrame draws a frame around each group of panels.

Small fixes

  • Calls from Lua into C keep their storage on the C stack, and reuse their callbacks, so they allocate less.
  • An emitted event goes only to the subscriptions made before it, in the order they were made.
  • Frames are drawn while the system moves or resizes a window.
  • A plugin that fails as it is enabled stays disabled. A plugin that an enabled plugin depends on cannot be disabled.
  • Background work stops before plugins are destroyed, and is refused from a plugin that is being disabled.
  • A settings file that could not be read is never written over. A session that cannot be read is moved aside, and the tool starts from the preset.
  • A panel whose id in a file is taken gets a new one.
  • Every setting change redraws every panel and popup.
  • ecs.font is a path, of the new setting type path.

What will break

Native plugins. OPENECS_API_VERSION is 3, so a plugin's manifest says api = 3. ECS_RunInBackground's done takes (void *data, bool dropped) and always runs, so it frees the data. The public functions check their arguments in every build, so a wrong argument that a Release build let pass is now reported.

Lua plugins. A failed call gives nil, then why, last, whatever its results. A registration with a duplicate name or a bad signature raises an error, so it needs no assert. A service's name may not repeat its plugin's name. ecs.handle.new and ecs.handle.value take a handle type's local name.

Standard plugins. OpenECS-std's release says how ui's props, its styles and textgrid's scale changed.

Presets, sessions and settings files keep their formats.

Downloads

  • openecs-0.7.0-linux-x86_64.tar.gz: the program with SDL's libraries, its plugins, presets and examples, the plugin interface, and the licenses. Unpack it and run OpenECS. It needs glibc 2.38 or later, such as Ubuntu 24.04 or Fedora 39.
  • openecs-0.7.0-windows-x86_64.zip: the same for Windows on x86_64, with SDL's DLLs beside OpenECS.exe.
  • openecs-0.7.0-source.tar.gz: the source with every library it uses. GitHub's own "Source code" archives leave the libraries out, so use this one to build.
  • SHA256SUMS: checksums of the archives.

OpenECS is under the zlib license.