Jump to content
  • Advertisement
Sign in to follow this  
gchris6810

GPU packet sizes way too large

This topic is 2009 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

 

I had noticed a very large frame rate drop in my application recently so I downloaded the Microsoft GPU View tool and after close analysis it appears that the packets being submitted to the GPU are far too large. My application is quite simple so it does pretty much the same work each frame and a regular packet is 3100 bytes and a present packet is 131,072 bytes in size. Seeing as a regular packet from World Of Warcraft is only 472 bytes in size I think I am doing something seriously wrong here.

 

Here is a list of the stuff I do each frame:

 

 - Map + unmap and update constant buffers with the per model data (1 matrix)

 - Bind relevant vertex, index buffers, textures

 - Bind relevant shader

 - Bind the input layout attached to the shader

 - Render using DrawIndexed

 

Of course, I could be completely wrong in thinking the slow down is to do with packet sizes but it seems to be the only possible cause. Does anyone know of a particular factor that could cause the packet sizes to become much larger?

Edited by gchris6810

Share this post


Link to post
Share on other sites
Advertisement

What packet sizes are you refering to ? If you  are refering to the data being upload each frame, then thats is dependent on what you are uploading. Thus, figuring out how much data is being uploaded each frame becomes a matter of resource tracking, since the data being uploaded is being submitted by your app.

Share this post


Link to post
Share on other sites

I would start by implementing a profiler in your game (QueryPerformanceCounter on CPU and D3D events on GPU) and find out which parts of your program are taking up what amount of time.

Share this post


Link to post
Share on other sites

How do you know large packets are bad, apart from this WoW comparison? Generally people try to send more data to the GPU at once, not less.

Edited by Pink Horror

Share this post


Link to post
Share on other sites


Seeing as a regular packet from World Of Warcraft is only 472 bytes in size

 

Are you sure you aren't confusing GPU packets with network packets here? Find it hard to believe WOW is putting data onto the graphics card in 472 byte chunks :)

 

If so, they are not comparable in any shape or form.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!