Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. slow OpenGL in MFC

slow OpenGL in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsc++game-devperformancehelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi, I am using MFC(singledocument) to display some 3D physical simulation with OpenGL. My problem is that the display is really slow when my display-window is large. Does anyone have any good ideas on how to speed up the display? The graphics is really simple, (i.e not photographic).I only need 8bit colors. For the smoothness of animation I need doublebuffering, but antialiasing is already turned off. Often only small parts of the window changes between frames. Is it possible to redraw only parts of the screen? I have also tried different settings for the pixelformat, f.x lowering the colordepth etc, but that has not made any large impact. Any ideas on the topic is welcome. Thanks. JoNy

    L 1 Reply Last reply
    0
    • L Lost User

      Hi, I am using MFC(singledocument) to display some 3D physical simulation with OpenGL. My problem is that the display is really slow when my display-window is large. Does anyone have any good ideas on how to speed up the display? The graphics is really simple, (i.e not photographic).I only need 8bit colors. For the smoothness of animation I need doublebuffering, but antialiasing is already turned off. Often only small parts of the window changes between frames. Is it possible to redraw only parts of the screen? I have also tried different settings for the pixelformat, f.x lowering the colordepth etc, but that has not made any large impact. Any ideas on the topic is welcome. Thanks. JoNy

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Are you SURE you're finding your 3d hardware correctly?? Perhaps your app isn't initializing OpenGL correctly, and you're ending up with the software implementation??

      J 1 Reply Last reply
      0
      • L Lost User

        Are you SURE you're finding your 3d hardware correctly?? Perhaps your app isn't initializing OpenGL correctly, and you're ending up with the software implementation??

        J Offline
        J Offline
        JoNy
        wrote on last edited by
        #3

        Thanks, how do I check if the application finds the 3d hardware? /JoNy

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups