Bug 3425 - flashing between connection-screen and maploading-screen (with new sdl-version)
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Video
Version: GIT MASTER
Hardware: PC Windows XP
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2007-11-14 12:59 EST by Stefan "#@" Langer
Modified: 2008-03-26 23:24:34 EDT
0 users

See Also:



Description Stefan "#@" Langer 2007-11-14 12:59:30 EST
there is an ugly grafic-effect between server-connection-screen and map-loading-screen ...
it only happens with windows version(tested on winXP) and r_fullscreen 1 ... it seems that this effect came with the sdl-version ...

This flash shows the old screen content, which was drawn before the connect-screen came.

sometimes it just flashes ... sometimes it stays some seconds

... has someone an idea how I could find the reason why it is happening?
(we (from World of Padman) would need a solution for our next patch ... so within one week -.- ... and I don't know where to start looking for the reason)
Comment 1 Thilo Schulz 2008-03-26 23:24:34 EDT
The problem only exists when connecting locally to a server. The reason is as follows:
As soon as a local server gets started, the server triggers the client part to shut down all loaded VMs, including the UI. Once that has happened, for a few consecutive frames no rendering commands are written into the command buffer whatsoever. Yet, the renderer still swaps between front and back OpenGL buffer. Since the UI gets killed immediately after writing the connect screen, only one of these buffers has been written with the connect screen, the other one still contains the previous image.
I fixed this in rev 1285 by simply adding a check in SCR_UpdateScreen(), whether the UI VM is running. If it's not, UpdateScreen will do nothing so that the connect screen never gets swapped away.