PlayBASIC V1.65C3 Beta 25 Development Blog - Summary
In this update, I dig deep into the behind-the-scenes technical work that’s been rounding off the PlayBASIC 1.65 release. Over the past couple of weeks, I’ve been fixing missing blend modes, resolving allocation issues in the mapping libraries, and tackling a series of elusive compiler bugs.
The main challenge was discovering and fixing fixed-size tables inside the compiler — such as function, label, and patch address tables — that could overflow when compiling large projects. I added dynamic expansion to these structures, improved their efficiency, and tracked down a particularly nasty overflow caused by optional parameter handling. This now allows PlayBASIC to successfully compile and run the largest programs in its history — over 10,000 lines — with quick, responsive recompiles.
I also showcased improvements to memory allocation in the mapping libraries, including a robust arena-based system that speeds up tile map handling, prevents silent crashes, and provides clearer runtime error messages when allocations go out of control. These changes greatly enhance stability and pave the way for further optimizations, such as reusing the allocator in other parts of the legacy command set.
Beyond the core engine, I’ve been reviewing and updating the example pack, tweaking controls, ensuring windowed mode starts by default, and making old demos more compatible with modern builds.
Overall, Beta 25 feels faster, more stable, and more robust than ever, setting the stage for future PlayBASIC 2 development while ensuring the current version remains as polished as possible.
Index:
0:00 – Welcome & blog overview
0:24 – Final cleanup for the 1.65 release
0:49 – Xors3D library & Direct3D dependency
1:33 – Tracking down compiler crashes
2:42 – Function and label table overflows
7:58 – Patch list system explained
12:58 – Fixing the optional parameter crash
17:00 – Compiling the largest PB program ever
22:20 – Arena-based memory allocation
27:06 – How map level data is stored
33:05 – Preventing silent crashes on big allocations
39:01 – Updating the example pack & demos
43:57 – Wrap-up & future plans for PlayBASIC 2
In this update, I dig deep into the behind-the-scenes technical work that’s been rounding off the PlayBASIC 1.65 release. Over the past couple of weeks, I’ve been fixing missing blend modes, resolving allocation issues in the mapping libraries, and tackling a series of elusive compiler bugs.
The main challenge was discovering and fixing fixed-size tables inside the compiler — such as function, label, and patch address tables — that could overflow when compiling large projects. I added dynamic expansion to these structures, improved their efficiency, and tracked down a particularly nasty overflow caused by optional parameter handling. This now allows PlayBASIC to successfully compile and run the largest programs in its history — over 10,000 lines — with quick, responsive recompiles.
I also showcased improvements to memory allocation in the mapping libraries, including a robust arena-based system that speeds up tile map handling, prevents silent crashes, and provides clearer runtime error messages when allocations go out of control. These changes greatly enhance stability and pave the way for further optimizations, such as reusing the allocator in other parts of the legacy command set.
Beyond the core engine, I’ve been reviewing and updating the example pack, tweaking controls, ensuring windowed mode starts by default, and making old demos more compatible with modern builds.
Overall, Beta 25 feels faster, more stable, and more robust than ever, setting the stage for future PlayBASIC 2 development while ensuring the current version remains as polished as possible.
Index:
0:00 – Welcome & blog overview
0:24 – Final cleanup for the 1.65 release
0:49 – Xors3D library & Direct3D dependency
1:33 – Tracking down compiler crashes
2:42 – Function and label table overflows
7:58 – Patch list system explained
12:58 – Fixing the optional parameter crash
17:00 – Compiling the largest PB program ever
22:20 – Arena-based memory allocation
27:06 – How map level data is stored
33:05 – Preventing silent crashes on big allocations
39:01 – Updating the example pack & demos
43:57 – Wrap-up & future plans for PlayBASIC 2