[Video] - How I optimised the Forbidden Solitaire FMV code by Jake Birkett

Everything else that doesn't fall into one of the other PB categories.
ricardo_sdl
Enthusiast
Enthusiast
Posts: 145
Joined: Sat Sep 21, 2019 4:24 pm

[Video] - How I optimised the Forbidden Solitaire FMV code by Jake Birkett

Post by ricardo_sdl »

The basic used is BlitzMax, but interesting anyway:

https://www.youtube.com/watch?v=l4ggmQXRbFI
You can check my games at:
https://ricardo-sdl.itch.io/
User avatar
Skipper
User
User
Posts: 71
Joined: Thu Dec 19, 2024 1:26 pm
Location: Europe

Re: [Video] - How I optimised the Forbidden Solitaire FMV code by Jake Birkett

Post by Skipper »

As interesting as this video is, I was amazed at how he optimised by reshuffling existing code and did not first perform any analysis of whether the algorithms used could be improved upon.
Basically, he did what a good compiler would be able to do, but nothing more.

Using PureBasic 6.21 on:
  • Win-11 on x64 XEON
  • Mint Linux on x64 i3 and on x64 i5
  • MacOS Monterey on x64 MacBook Pro
  • Various Raspberry Pi's

ricardo_sdl
Enthusiast
Enthusiast
Posts: 145
Joined: Sat Sep 21, 2019 4:24 pm

Re: [Video] - How I optimised the Forbidden Solitaire FMV code by Jake Birkett

Post by ricardo_sdl »

And the thing is BlitzMax compiler generates c or c++ code which is then fed to the compiler and you would expect it make the smart optmizations. One thing I think made a big difference was that he improved the cache usage for the code.
You can check my games at:
https://ricardo-sdl.itch.io/
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: [Video] - How I optimised the Forbidden Solitaire FMV code by Jake Birkett

Post by Mijikai »

Here is the code if anyone is interested:
https://www.syntaxbomb.com/index.php?msg=347064333
User avatar
Shardik
Addict
Addict
Posts: 2076
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: [Video] - How I optimised the Forbidden Solitaire FMV code by Jake Birkett

Post by Shardik »

Skipper wrote: Thu Mar 20, 2025 4:25 pm As interesting as this video is, I was amazed at how he optimised by reshuffling existing code and did not first perform any analysis of whether the algorithms used could be improved upon.
Basically, he did what a good compiler would be able to do, but nothing more.
Here you can read Jake Birkett's (aka GreyAlien's) answer.
User avatar
Skipper
User
User
Posts: 71
Joined: Thu Dec 19, 2024 1:26 pm
Location: Europe

Re: [Video] - How I optimised the Forbidden Solitaire FMV code by Jake Birkett

Post by Skipper »

Nice that he picked up that message from our forum :)

Using PureBasic 6.21 on:
  • Win-11 on x64 XEON
  • Mint Linux on x64 i3 and on x64 i5
  • MacOS Monterey on x64 MacBook Pro
  • Various Raspberry Pi's

Post Reply