Sign in to follow this  
  • entries
    155
  • comments
    100
  • views
    93795

The Chain of Dependencies

Sign in to follow this  
Knarkles

52 views

Dependencies are fun.

1. It started by me thinking "hey, an FPS counter would be nice."
2. I realized that the current font rendering method (creating a texture out of the string) isn't suitable for dynamic (often-changing) text, so I would need to implement glyph-based rendering.
3. Then I realized I needed a blit method in my texture class for building the texture containing all the glyphs.
(4. At this point I researched bin packing algorithms, and found a decent quick-ish one.)
5. My implementation of the Image and Texture classes didn't lend itself too well for implementing a nice blit() method, so I had to change that: image is now a plugin category (eg. Pygame plugin, PIL plugin...). On a related note, the font package will probably also become a plugin later.
6. Realizing that constantly updating a texture that was already created would be incredibly slow, I changed Texture creating so that it's only uploaded to the GPU when it's actually used for rendering. You can also upload it manually before that.
7. And at this point, I'm about to implement blit() for the Texture class so that it actually updates the texture with the blitted region, if the texture is already uploaded.

*PHEW* I think I can finally start working backwards up the chain to implement that FPS counter this all started with...

EDIT: Inspired just a bit by HopeDagger, I'm thinking of moving my development journal off Gamedev.net to the Spineless Jelly web site. Either using the Drupal blog module or Wordpress, I'm not yet sure (or even sure if I'll move).
Sign in to follow this  


2 Comments


Recommended Comments

Thanks for the plug! [smile]

It's been really cool the kinds of things you've been pulling off with Python over the months. My original impression of Python for game development has certainly changed from "unfeasible" to "potentially awesome" as I've read through entry after entry of your progress with Spineless. Here's to looking forward to seeing you pump out a wicked-cool game after SJ is out the door!

Share this comment


Link to comment
Quote:
Original post by HopeDagger
It's been really cool the kinds of things you've been pulling off with Python over the months. My original impression of Python for game development has certainly changed from "unfeasible" to "potentially awesome" as I've read through entry after entry of your progress with Spineless. Here's to looking forward to seeing you pump out a wicked-cool game after SJ is out the door!


Actually I'm developing the game and Spineless Jelly at the same time; I let the game drive the development of the engine, so that hopefully the features and interfaces of the engine remain useful for actual game development and not just "oh, this might be cool". [smile]

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now