#34399 - DiscoStew - Wed Jan 19, 2005 12:31 am
This is a question I had on my mind for quite some time. In a general sense, I would see no actual gameplay problem with it, but maybe other people have a different opinion.
When I first started programming for the GBA, my first impression was to do every single calculation in the VBlank (including input from the user), so that the results can be displayed in the frame to be drawn. This ofcourse would exclude HBlank effects, as those need to be set on each scanline. As I got farther into programming, I noticed that the VBlank just couldn't handle everthing. So I set up my code to start taking input and do calculation on the VBlank, and then once all the calculations were done, I would store the results into buffers, that will be set into the registers once the VBlank occurs again, which woudl display the result on the frame after that.
Perhaps I'm just summarizing the correct way to program games, which will result in me getting a stupid answer for my stupid question. But many times I here people starting their frame calculations at the start of the first HBlank, not at the VBlank, which is why I decided to ask this question. so...
Whether it be 1 frame behind, or 1 frame and 68 scanlines behind, would it make a difference to the user? This is in reference that a game is running at 60fps FYI. Expand on this topic if you want.
_________________
DS - It's all about DiscoStew
When I first started programming for the GBA, my first impression was to do every single calculation in the VBlank (including input from the user), so that the results can be displayed in the frame to be drawn. This ofcourse would exclude HBlank effects, as those need to be set on each scanline. As I got farther into programming, I noticed that the VBlank just couldn't handle everthing. So I set up my code to start taking input and do calculation on the VBlank, and then once all the calculations were done, I would store the results into buffers, that will be set into the registers once the VBlank occurs again, which woudl display the result on the frame after that.
Perhaps I'm just summarizing the correct way to program games, which will result in me getting a stupid answer for my stupid question. But many times I here people starting their frame calculations at the start of the first HBlank, not at the VBlank, which is why I decided to ask this question. so...
Whether it be 1 frame behind, or 1 frame and 68 scanlines behind, would it make a difference to the user? This is in reference that a game is running at 60fps FYI. Expand on this topic if you want.
_________________
DS - It's all about DiscoStew