Jump to content

  • Log In with Google      Sign In   
  • Create Account

najmuddin

Member Since 02 Dec 2012
Offline Last Active Dec 17 2013 12:48 AM

Topics I've Started

Blits per second

29 December 2012 - 01:21 AM

Greetings!

Before anything I must say excuse me for my english, I'm trying to do my best :).

I'm developing my first game in C++ using SDL. I blit all of the surfaces into one I call buffer and then I blit that one into the screen (as I used to do when I used Allegro). I'm not using delays, I just control the time in which each object is rendered but anyway, even if nothing has changed, the whole surfaces are blitted into the screen at every cycle of the game. My questions are:

1- Should I avoid blitting if nothing has changed?
2- What could be the consequences of that if the V-Sync is disabled and the game is running al high FPS?

Thank you !

Dynamic memory and forced process closing

04 December 2012 - 07:05 PM

Greetings!

I would like to ask you what does happen whith the variables on the dynamic memory (created with new) if you force the closing of the process, before the call of the delete instruction?... Are destroyers called anyway?... What are the consequences of that?

Thank you... (And sorry, I'm bad speaking english)

PARTNERS