DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2006

    DirectDraw Speed problems...

    I have written a small visualisation programme using VB and DirectDraw as part of a Uni project. I'm a mechanical engineer so i do appologise for the undoubtedly bad code, but i am having speed issues.

    The programme basically reads data about strain guages though the serial port and displays images depending on the values read. The code works fine except for 2 things...

    Firstly the code runs very slowly, or much more slowly than I'd expect. It is not the serial communications that are taking the time because i have replaced that bit of code with a random number generator. It seems to get slower as the programme runs and is sometimes a couple of seconds between frames. It is not the computer as I have tried running it on three computers now.

    Secondly, when I access the MSComm control to receive serial data, I get the original VB form flashing up in the top left corner. I can get around this by setting the form.visible=false, but sometimes this seems unhappy, and I have to Alt+Tab out of the programme when it is running.

    Any help would be much appreiciated as I have to demonstrate this on thursday...

    Cheers, Duncan.

    PS, I have attatched the code but not the pics cos they are 16Mb in size...
    Attached Files Attached Files
    • File Type: zip 1.zip (5.3 KB, 47 views)

  2. #2
    Join Date
    Jun 2006
    i think your problem is with rendering resolution if you change the screen resolution to 320*240 and run your program at that screen it could be faster(((I THINK)))

  3. #3
    Join Date
    Jun 2006
    Also loading 16 mb in buffer and reading from it takes time , Reduceing image size could be helpful(((I THINK))

Similar Threads

  1. Access to DirectDraw Objects
    By Sheela in forum Security
    Replies: 1
    Last Post: 01-29-2002, 08:18 PM
  2. security and DirectDraw objects
    By Sheela in forum Enterprise
    Replies: 0
    Last Post: 01-15-2002, 03:48 PM
  3. possible speed problems with ADO..
    By smenace in forum VB Classic
    Replies: 2
    Last Post: 12-24-2001, 02:52 PM
  4. MTS - Speed problems
    By Phil Moir in forum Enterprise
    Replies: 2
    Last Post: 08-24-2001, 09:47 AM
  5. Replies: 0
    Last Post: 10-04-2000, 04:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.