{"author_link":"\/users\/frabjous-studios","author_name":"Frabjous Studios","author_uid":"frabjous-studios","comments":[],"epoch":1683814111,"event":"LD53","format":"md","ldjam_node_id":370561,"likes":1,"metadata":{"p_key":"201218","p_author":"Frabjous Studios","p_authorkey":"1345969","p_urlkey":"433897","p_title":"Windows Stability Fixed for BANKWAVE: Neon Networth","p_cat":"LDJam ","p_event":"LD53","p_time":"1683814111","p_likes":"1","p_comments":"0","p_status":"WAYBACK","us_key":"1345969","us_name":"LDJam user 345969","us_username":"345969","event_start":"1682726400","event_key":"118","event_name":"Ludum Dare 53"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD53","removed_author":false},"_superparent":332127,"_trust":1,"author":345969,"body":"We just *CONFIRMED* the major source of instability for our LDJam entry, BANKWAVE: Neon Networth has been resolved! \n\nIt turns out that not every library you find in the wild includes sane defaults. We missed setting up a cache for our text rendering library, resulting in massive performance penalties you can see in the graph below -- taken with pprof. As a result, _20% of our game's time was being spent on creating new images to render letters it had mostly already rendered._\n\n![pprof.png](\/\/\/raw\/177\/45\/z\/5bb25.png)\n\nOnce we set things up properly and added a tiny 4 MiB cache, the bottleneck was resolved!\n\n![pprof_after.png](\/\/\/raw\/177\/45\/z\/5bb26.png)\n\nI would never have guessed something like this was responsible for a performance hit... definitely a mistake I won't be repeating. Super glad I'm working with [Ebitengine](https:\/\/ebitengine.org) and [Go](https:\/\/golang.org) -- which comes with fantastic profiling tools (pprof) that created the graphs above and showed me _exactly_ where the problem was.\n\nThis should be the very last update for the Jam version of our game! Stay tuned as we get rolling on a Kickstarter! Mailing list will be available soon!\n","comments":0,"created":"2023-05-11T14:01:40Z","files":[],"files-timestamp":0,"id":370561,"love":1,"love-timestamp":"2023-05-11T18:21:19Z","meta":[],"modified":"2023-05-11T18:21:19Z","name":"Windows Stability Fixed for BANKWAVE: Neon Networth","node-timestamp":"2023-05-11T14:08:31Z","parent":346042,"parents":[1,5,9,332127,346042],"path":"\/events\/ludum-dare\/53\/untitled-frabjous-game\/windows-stability-fixed-for-bankwave-neon-networth","published":"2023-05-11T14:08:31Z","scope":"public","slug":"windows-stability-fixed-for-bankwave-neon-networth","subsubtype":"","subtype":"","type":"post","version":1145374},"node_metadata":{"n_key":"370561","n_urlkey":"433897","n_parent":"346042","n_path":"\/events\/ludum-dare\/53\/untitled-frabjous-game\/windows-stability-fixed-for-bankwave-neon-networth","n_slug":"windows-stability-fixed-for-bank","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"345969","n_created":"1683813700","n_modified":"1683829279","n_version":"1145374","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/53\/untitled-frabjous-game\/windows-stability-fixed-for-bankwave-neon-networth","text":"We just *CONFIRMED* the major source of instability for our LDJam entry, BANKWAVE: Neon Networth has been resolved! \n\nIt turns out that not every library you find in the wild includes sane defaults. We missed setting up a cache for our text rendering library, resulting in massive performance penalties you can see in the graph below -- taken with pprof. As a result, _20% of our game's time was being spent on creating new images to render letters it had mostly already rendered._\n\n![pprof.png](\/\/\/raw\/177\/45\/z\/5bb25.png)\n\nOnce we set things up properly and added a tiny 4 MiB cache, the bottleneck was resolved!\n\n![pprof_after.png](\/\/\/raw\/177\/45\/z\/5bb26.png)\n\nI would never have guessed something like this was responsible for a performance hit... definitely a mistake I won't be repeating. Super glad I'm working with [Ebitengine](https:\/\/ebitengine.org) and [Go](https:\/\/golang.org) -- which comes with fantastic profiling tools (pprof) that created the graphs above and showed me _exactly_ where the problem was.\n\nThis should be the very last update for the Jam version of our game! Stay tuned as we get rolling on a Kickstarter! Mailing list will be available soon!\n","title":"Windows Stability Fixed for BANKWAVE: Neon Networth","wayback_source":[]}