Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Tough decision!

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 ghost1206   Members   

122
Like
Likes
Like

Posted 10 January 2002 - 09:02 PM

Dear, I am trying to implement a game using DirectX during my free time, but I run into a problem and I am facing a dilemma concerning the way I should solve it. What I am trying to make is a strategy like civilization (the main map made of little diamond-shaped tiles) and I am currently trying to implement the scrolling part (the user brings the mouse pointer to one of the sides of the screen and the map should scroll to the opposite direction). I figure there must be two solutions to this. One is to blit the frame diamond by diamond starting from an X+1 diamond and the other one is to blit the whole frame as it was shifted by one diamond size and then blit the missing column (or row if we are scrolling vertically). I managed to make both solutions work but I am not sure which is the most efficient and why. I would very much like to have your guidance on this. Dimitris

#2 Sandman   Members   

2210
Like
Likes
Like

Posted 10 January 2002 - 11:08 PM

The second solution sounds a lot better to me. The best way to check this would be by running it and seeing the difference (having an fps counter and/or a profiler running might help if the difference is hard to see)

#3 ghost1206   Members   

122
Like
Likes
Like

Posted 11 January 2002 - 12:46 AM

Thanks! You are right about the fps counter (I was just too lazy to include it in the program! I guess I can''t avoid it anymore.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.