Game Graphics - Quality Dependent FPS Control?

后端 未结 1 1031
太阳男子
太阳男子 2021-01-25 10:47

I\'m currently making a game (in vb.net) that uses the Graphics class to draw most of the game objects, but i\'ve run into the old problem of performance. To combat the lagging

1条回答
  •  死守一世寂寞
    2021-01-25 11:27

    I have made a sample WPF project similar to what you need, just to give you an idea how powerful and beautiful and fast WPF is compared to ancient technologies.

    It looks like this:

    enter image description here

    It's a little too much code to post it here entirely, so here is a link to a RAR file with the full source.

    The main UI XAML is this:

    
        
            
                
            
    
            
                
            
        
    
        
            
                
                    
                    
                    
                
            
            
                
                
            
            
                
                    
                
                
                    
                        
                    
                
            
        
    
    
    • Compare the amount of code in my project (and the cleanliness of it) to the multiple hacks you need to do almost anything in winforms.
    • Also compare the performance, and the resolution independence.

    0 讨论(0)
提交回复
热议问题