Page 1 of 1

HGF updated

PostPosted: Sun Jun 28, 2015 8:14 pm
by jalih
Hi all,

I just re-wrote most of my Hollywood Game Framework. It's now more modular and uses OOP for purposes where it matters. I dare to say, it's the easiest way to program hardware accelerated double buffered games in Hollywood.

Currently supported features:
- easy game loop handling (Delta timing done right. Simulation runs at full speed but skips draw events if necessary.)
- game state manager
- tile maps
- bitmap font support
- Inferno OS style draw functionality
- scanner and parser

Download it from here

It comes with a demo project showing new functionality.

As always, some feed back would be nice to get.

Re: HGF updated

PostPosted: Tue Jun 30, 2015 12:13 am
by airsoftsoftwair
Looks like you're using some kind of manual throttle in the game loop in HGFgame:run(). For the best performance you should leave this to Flip() which will automatically synchronize with the monitor's vertical refresh, i.e. it will wait for the vblank and then refresh automatically.

Re: HGF updated

PostPosted: Tue Jun 30, 2015 8:00 am
by jalih
airsoftsoftwair wrote:Looks like you're using some kind of manual throttle in the game loop in HGFgame:run(). For the best performance you should leave this to Flip() which will automatically synchronize with the monitor's vertical refresh, i.e. it will wait for the vblank and then refresh automatically.

I am using fixed time step for my game loop. Drawing speed is limited by Flip() and vblank but if it takes more time to draw the frame than what is the game update rate, we must play catch up and consume game time by taking fixed time steps. This way game always updates at same speed but might skip draw frames.

Currently some aliasing effects are possible, but support for interpolating between last state and next state is coming soon. This should allow smoother movement.

Re: HGF updated

PostPosted: Tue Jun 30, 2015 8:24 pm
by jalih
Just fixed my bitmap font support module...

- added clipping, so now text going out of screen boundaries is handled properly

Re: HGF updated

PostPosted: Sun Apr 08, 2018 8:25 pm
by Mazze
jalih wrote:Hi all,

I just re-wrote most of my Hollywood Game Framework. It's now more modular and uses OOP for purposes where it matters. I dare to say, it's the easiest way to program hardware accelerated double buffered games in Hollywood.

Currently supported features:
- easy game loop handling (Delta timing done right. Simulation runs at full speed but skips draw events if necessary.)
- game state manager
- tile maps
- bitmap font support
- Inferno OS style draw functionality
- scanner and parser

Download it from here

It comes with a demo project showing new functionality.

As always, some feed back would be nice to get.


The link gives me a 404 error. Is HGF still downloadable from somewhere?