Sign in to follow this  
Xanather

Should I use the GPU for a tile-based game?

Recommended Posts

This is probably a stupid question but honestly I have no idea. I plan on making a 2D tile-based game after I know a bit more C#/XNA. Should I take the time to also learn HLSL for lighting processing etc? Let your reply be defined with the following points:

1. I will be only applying shadows to each tile or maybe even every quarter of a tile (not, for example, every pixel).
2. I'm fairly sure games such as Terraria does not even touch the GPU except for drawing the frames.

I feel confident these days processors can easily handle what I have described (each tile shadows only).

All replies are appreciated, Thanks Xanather.

Share this post


Link to post
Share on other sites
[quote name='Xanather' timestamp='1341143478' post='4954507']
2. I'm fairly sure games such as Terraria does not even touch the GPU except for drawing the frames.
[/quote]

Although GPUs are sometimes used to perform calculations, 99% of the time they draw frames.

I'm not sure what you mean by 'only applying shadows to each tile'. Perhaps you need to be a little more specific?

Share this post


Link to post
Share on other sites
Your question makes no sense, but it doesn’t really matter.
In any case, working with shaders is the correct answer. You are guaranteed to be able to do whatever strange thing you are planning to do right now, and even fixed-functionality tasks are easier to do with shaders.

Shaders are also higher in performance than the fixed-function pipeline, so if whatever this mysterious thing you are planning is advanced in any way it will benefit from the performance of shaders.

Not only that, but knowing HLSL is simply a benefit to your future. It is expected common knowledge these days and having experience with only the fixed-function pipeline does not impress potential employers.


L. Spiro

Share this post


Link to post
Share on other sites
Well I just read a article about HLSL and I must say looking back at this, I really did not make any sense like you said haha. Ill probably look into making shaders with HLSL more. Thanks!

Share this post


Link to post
Share on other sites

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

Sign in to follow this