rate up
0
rate down
Update only half of all screen.
Hey, i just wanna make that game updates only half of the screen, i made viewport as half of screen, but if i wanna make button there it vanishes just because its being updated, so i wanna it to not update, any thought how to do it?
Chosen Answer
rate up
0
rate down
The problem is that you are drawing over the button. either you are not redrawing the button every frame, or you are clearing or actually drawing something over the button every frame. There are two ways you can fix it. First way, which is what i suggest, redraw the button every frame. The second is to not clear the RTV, and just make sure you draw over anything you don't want from the previous frame. not clearing the render target is actually a performance boost, but you may end up with stuff from the previous frames showing up on the screen if you do not draw over everything you don't want to see. for example, you have a point move across the screen. you expect to see only a green dot moving. instead, if you do not draw over where the dot was in the previous frame, you will see a line stretch across the screen.
Comments
First way is not the best way, cuz if you redraw same button every frame, button gets really weird, and if you push him, he still is DEPUSHEDBUTTON and i think it uses alot of proccesing to create button each and every frame.
on Oct 29 `15
IamU4
Sign in to answer!