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. Graphics
  4. Hi this is related monitor updation in turbo c in DOS

Hi this is related monitor updation in turbo c in DOS

Scheduled Pinned Locked Moved Graphics
helpquestionannouncement
6 Posts 3 Posters 7 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.
  • S Offline
    S Offline
    shriram_ch
    wrote on last edited by
    #1

    Hi all, i have written a program using system timer, i configures system timer using outportb(portAdd, byte) for achiveing 1msec interval. i was trying to update on filled rectangle(moving) evry 20msec. sometimes if shows flikkering effect. can i solve this problem. can i synchronise rectangle plotting with monitor updation(vertical sync), HOW? shri

    J S 2 Replies Last reply
    0
    • S shriram_ch

      Hi all, i have written a program using system timer, i configures system timer using outportb(portAdd, byte) for achiveing 1msec interval. i was trying to update on filled rectangle(moving) evry 20msec. sometimes if shows flikkering effect. can i solve this problem. can i synchronise rectangle plotting with monitor updation(vertical sync), HOW? shri

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      The drawing operations usually can't keep up with the display when this happens. So, if you have the flickering issues you either need to A: slow down the animation or B: use double buffering by drawing to an off/memory buffer and the blitting that to the display so the delay isn't noticeable.

      Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]

      1 Reply Last reply
      0
      • S shriram_ch

        Hi all, i have written a program using system timer, i configures system timer using outportb(portAdd, byte) for achiveing 1msec interval. i was trying to update on filled rectangle(moving) evry 20msec. sometimes if shows flikkering effect. can i solve this problem. can i synchronise rectangle plotting with monitor updation(vertical sync), HOW? shri

        S Offline
        S Offline
        Shog9 0
        wrote on last edited by
        #3

        Oh wow, that's a trip back. If you're seriously doing DOS graphics programming, you might want to spend some time with the old Abrash columns[^]...

        ----

        It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

        --Raymond Chen on MSDN

        J 1 Reply Last reply
        0
        • S Shog9 0

          Oh wow, that's a trip back. If you're seriously doing DOS graphics programming, you might want to spend some time with the old Abrash columns[^]...

          ----

          It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

          --Raymond Chen on MSDN

          J Offline
          J Offline
          Jeremy Falcon
          wrote on last edited by
          #4

          Define Crazy: I spent days and almost $100 trying to track down that black book w/ the CD in good condition. So, I get it and it sits collecting dust alongside my other books. But, it does look neato sitting there. :)

          Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]

          S 1 Reply Last reply
          0
          • J Jeremy Falcon

            Define Crazy: I spent days and almost $100 trying to track down that black book w/ the CD in good condition. So, I get it and it sits collecting dust alongside my other books. But, it does look neato sitting there. :)

            Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]

            S Offline
            S Offline
            Shog9 0
            wrote on last edited by
            #5

            Heh. :) I think i first read it in electronic form; it came on CD with The Zen of Graphics. Gosh, it's been probably ten years or more since i bought that book... loved it though; the guy can really write.

            ----

            It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

            --Raymond Chen on MSDN

            J 1 Reply Last reply
            0
            • S Shog9 0

              Heh. :) I think i first read it in electronic form; it came on CD with The Zen of Graphics. Gosh, it's been probably ten years or more since i bought that book... loved it though; the guy can really write.

              ----

              It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.

              --Raymond Chen on MSDN

              J Offline
              J Offline
              Jeremy Falcon
              wrote on last edited by
              #6

              Oh yeah, and if I ever end up dumb enough to write video drivers in DOS, well I'm set - minus the whole I don't know ASM *that* well thing thugh. :)

              Jeremy Falcon "It's a good thing to do and a tasty way to do it." - Wilford Brimley[^]

              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