CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

View Poll Results: Which of the test cases performed the best on your system

Voters
1. You may not vote on this poll
  • The VB6 Project

    0 0%
  • The .NET Project

    0 0%
  • The .NET Code snip (Hannes' code)

    1 100.00%
  • Inconclusive results / A Tie

    0 0%
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    net vs 6 - GDI Test 1

    This was the First GDI test Done..

    The task is to simply tile a Bitmap image across the form's background.

    A loop counter is included so that we can loop over the code multiple times and get more accurate time data..

    Apart from the two project files attached there was one more submition to this test that needs mention..

    Hannes posted the following
    Code:
        Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick
                 Me.BackgroundImageLayout = ImageLayout.Tile
            Me.BackgroundImage = PictureBox1.Image
        End Sub
    Attached Files Attached Files
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: net vs 6 - GDI Test 1

    Results of this test as run on my Vista dev system..

    code loops 100 times, on same sized form (Critical)

    VB6 - API = 94ms
    VB.NET - GDI = 640ms
    VB.NET - Std Control = 1.38ms(back calculated from 10000000 loop)

    Re tested on full screen... (1280 * 768)

    VB6 - API = 312ms
    VB.NET - GDI = 2637ms
    VB.NET - Std Control = 2.15ms(back calculated from 100000 loop)
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured