Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Render Freeze - Please Help

  1. #1

    Render Freeze - Please Help

    I am a noobie here and to UnDelphiX so please excuse me if this is a stupid question :?

    When rendering in windowed mode, using the DXTimer (OnTimer Event) or Application.Idle method, if i drag the Form Window on screen or display a pop-up menu the rendering freezes until i stop dragging or i close the pop-up

    Can anyone out there explain what i am doing wrong and show me the right way to fix this problem. I would like my Form Window to behave like Windows Media Player. While you drag the player around the screen or pop-up a menu it continues to play the video/movie in real-time (No Render Freezing!)

  2. #2

    Render Freeze - Please Help

    Try setting the timer's ActiveOnly to false and see if that helps.
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

  3. #3
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Render Freeze - Please Help

    Please refrain from double posting. It makes unessissary mess and causes confusion when trying to resolve complex issues. Thanks, and welcome to PGD.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  4. #4

    Render Freeze - Please Help

    Thanks WILL and sorry for the double post ops:

    Hi Andreaz, I tried it and it didn't help :cry:

    In fact the same happens (Render freezing) even when not using UnDelphiX (i.e. just using and ordinary TForm and and a TBitmap Canvas to draw on. I'm wondering if Windows is suppressing certain Events like OnIdle or OnTimer when dragging a window or pop-up menus are on screen?

  5. #5

    Render Freeze - Please Help

    Did you already try to add the following line in your OnIdle/OnTimer event?

    Application.ProcessMessages;

    Maybe this helps, but I am not an (Un)DelphiX expert... I don't know how the timer works.
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  6. #6

    Render Freeze - Please Help

    Hi Huehnerschaender, I tried that and it didn't work. I can move the mouse cursor, click/press keys/buttons etc and it all works smoothly with rendering updating OK. Then as soon as i drag the window, or right click my pop-up menu, rendering freezes and only unfreezes when i cease dragging or close the pop-up. I'm mystified :?

  7. #7

    Render Freeze - Please Help

    I just tried out my actual project in windowed mode. Dragged the window and it stops rendering, too. So your problem is no DelphiX problem I guess. It must be something about the window handling of Windows itself. I don't use (Un)DelphiX in my project, so I am sure the problem does not relate to it.
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  8. #8

    Render Freeze - Please Help

    I may be wrong, but my understanding is that the action of clicking to begin dragging the window stops other Windows message processing. Hence why it stops. Can anyone on Linux confirm that this happens on Linux as well. In either case it's the way that the Windows messaging subsystem is written.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  9. #9

    Render Freeze - Please Help

    But there must be a way to avoid this, because there are applications which do not stop working when being dragged.
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  10. #10

    Render Freeze - Please Help

    Don’t have the time to test it right now, but I think that it will stop the primary/gui thread. So maybe if you’ll run a second thread that will do the actual processing and drawing it will still work.

    If non of you will I can try and test it tomorrow.
    [size=9px]BEGIN GEEK CODE BLOCK
    <br />d s-- : a24 GB GCS GTW GE C++ P L+ W++ N+ K- w++++ M- PS+ PE+ Y- t+ 5+++ X+ R*
    <br />tv b+ DI++ D+ e++ h+ G-
    <br />END GEEK CODE BLOCK[/size]
    <br />Create your own GeekCode block at: <a href="">...</a>

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

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