Dec. 17th, 2017 Nightly Build


Alright, yes, I know, this one's out WAY earlier than usual. It isn't even night time yet. Well, it's evening, so that counts, I guess. Anyway, in the previous devlog I said this build would be all about optimization and improving framerates and CPU usage and all that stuff. I'm releasing this build because, at least for now, I have done all the optimizations I can do and am EXTREMELY happy with how it all turned out.

Special thanks to Matt Trobbiani (aka the Hacknet guy) for playing a role in helping out with the optimizations. Basically he reminded me of Visual Studio's CPU performance profiler.

Anyway, let's get to the changelog.

Features and enhancements

  1. Removed the Debug Console and associated commands. It had barely any usefulness, and used A LOT of CPU.
  2. Added CPU usage counter to the performance meters at the top of the screen. You have RogueAI to thank for that.
  3. UI element invalidation has been reworked. UI elements can be invalidated, but no longer have to fully repaint every time. Invalidating a control notifies its parents recursively, causing a re-render of the affected UI elements' backbuffers. You can still request a repaint of your control's surface buffer to get the previous behaviour of invalidation. The new behaviour uses far less CPU.
  4. Removed global string texture caching. This cuts down on RAM and CPU usage as well as increases the framerate. There is virtually no need for global text caching, in fact it causes more issues than it solves.
  5. Controls skip rendering if their opacity is 0, regardless of the "Allow Transparent UI Elements" setting. Why render something that you can't see? This also affects mouse events as controls with 0% opacity ignore click events completely. Slight improvement in framerate.
  6. Various improvements with switching between control surfaces and the game render target. This was pretty much the bulk of the performance issues in the previous build.
  7. UI engine falls back to Windows Forms text rendering if Pango rendering isn't available. Slightly faster and less old than GDI+. And it looks better in my opinion.
  8. FPS counter updates every second as opposed to every frame. Less responsive to the actual framerate, but now it doesn't actually AFFECT the framerate as it updates. Again, you have RogueAI to thank for that.

Bugfixes

  1. FINALLY, I fixed the bug that caused UI elements to disappear randomly.
  2. Removed the code that causes a control's backbuffer to be reallocated EVERY TIME the control is invalidated. Even more performance improvements with that one.
  3. Fixed bug with mouse location pulling in Slider Bars.
  4. Fixed Peacegate bootup sequence issues with "Disable Transparent UI Elements" setting being on.
  5. The following UI elements now only recalculate their size if vital properties are changed: List View, List View Item, Check Label, Panel, Scroll View, Label, Button

Bugs

  1. Terminal no longer properly responds to incoming text in the stdout stream.
  2. Mouse click events are fired to the bottom-most control in a stack of overlapping controls that share the same parent, instead of being fired to the top-most control.
  3. Mouse move events are registered by controls even if they are completely covered by other controls or can't be seen by the player.
  4. UI elements still render and update even if they are completely covered by other UI elements (and thus you can't see them.)

4 known bugs..that's a record. Anyway, these optimizations are definitely going to come in handy. Still need to work on ui element culling. That one's a biggy.

Files

the-peacenet-windows-nightly.zip 40 MB
Version 4 Dec 17, 2017

Get The Peacenet

Leave a comment

Log in with your itch.io account to leave a comment.