project-navigation
Personal tools

Author Topic: flickering screen (compitz-videocarddriver conflict) [SOLVED]  (Read 4885 times)

KEEN

  • Guest
Hi all,

just made an install from the deb-packet (2.2.1) on my hardy.
my problem the screen keeps flashing during the game and if I open another application to view it on top
the game keeps drawing on top of the window.

I'm new to this plz help

(mayB it has something to do with the new ati-closed driver I installed tonight ?)

compiled the sources from svn now newest release same thing.

here my startup console output:

Code: [Select]

---- filesystem initialization -----
Adding game dir: /usr/local/lib/ufoai/base
Adding game dir: /usr/local/share/ufoai/base
Adding game dir: ./base
using /home/christian/.ufoai/2.3-dev/base for writing
Adding game dir: /home/christian/.ufoai/2.3-dev/base
execing default.cfg
couldn't exec config.cfg
execing keys.cfg

----- network initialization -------
libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.1 initialized.

------ server initialization -------
added 7 maps to the mapcycle
...using language: en_US.UTF-8

----- console initialization -------
couldn't load history
Console initialized.

------- video initialization -------
SDL version: 1.2.12
I: desktop depth: 32bpp
I: video memory: 0
I: video driver: x11
I: setting mode 6: 1024x768 (fullscreen: no)
I: set swap control to 0
I: got 8 bits of stencil
I: got 24 bits of depth buffer
I: got double buffer
I: got 8 bits for red
I: got 8 bits for green
I: got 8 bits for blue
I: got 8 bits for alpha
I: got 0 multisample buffers
GL_VENDOR: ATI Technologies Inc.
GL_RENDERER: Radeon X1950 Series
GL_VERSION: 2.1.7412 Release
GL_EXTENSIONS: GL_AMD_performance_monitor GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_envmap_bumpmap GL_ATI_fragment_shader GL_ATI_meminfo GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_copy_texture GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_object GL_EXT_gpu_program_parameters GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texgen_reflection GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_vertex_array GL_KTX_buffer_region GL_NV_blend_square GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_WIN_swap_hint WGL_EXT_swap_control
ignoring GL_ARB_texture_compression
using GL_EXT_texture_filter_anisotropic [16 max] [ 1 selected]
using GL_EXT_texture_lod_bias
using GL_ARB_fragment_program
using GL_ARB_shading_language_100
ignoring GL_ARB_vertex_buffer_object
max texture units: 8
max texture size: detected 4096
but using 2048 as requested
SDL_ttf version 2.0.9 - we need at least 2.0.7

------- sound initialization -------
SDL_mixer version: 1.2.8
... audio rate: 44100
... audio channels: 2
... driver: 'alsa'

------- input initialization -------
0 possible joysticks
no joystick found.

--- save subsystem initialization --
added size subsystem (check ff)
added base subsystem (check 0)
added campaign subsystem (check 1)
added hospital subsystem (check 2)
added market subsystem (check 3)
added research subsystem (check 4)
added employee subsystem (check 5)
added aliencont subsystem (check 6)
added production subsystem (check 7)
added aircraft subsystem (check 8)
added messagesystem subsystem (check 9)
added stats subsystem (check a)
added nations subsystem (check b)
added transfer subsystem (check c)
added alien base subsystem (check d)
added xvirate subsystem (check e)

----------- parse scripts ----------
Shared Client/Server Info loaded
... 99 items parsed
... 32 damage types parsed
... 59 map definitions parsed
... 25 equipment definitions parsed
... 10 inventory definitions parsed
... 22 team definitions parsed
music change to van_theme (from PsymongN3)
execing autoexec.cfg
"version" is "UFO: Alien Invasion 2.3-dev i386 Jun  4 2008 Linux DEBUG"
S_Music_Start: Playing music: 'music/van_theme'
CL_LanguageInit()... language settings are stored in configuration: en_US.UTF-8
Could not find locale with id 'en_US.UTF-8'
117 static models loaded
...uploaded 5 shaders
====== UFO Initialized ======

Cinematic videos/intro.roq not found
Switch grab input off

« Last Edit: June 06, 2008, 05:06:52 pm by KEEN »

KEEN

  • Guest
Re: flickering screen
« Reply #1 on: June 06, 2008, 05:05:48 pm »
After a lot of resarch i foud out that the ati-driver and compiz are fighting for superiority over
drawing on the screen.

Here a little shell-script that disables during the execution of the specified programm:
name the script (in my case rwc "run withour compiz"), place it in /usr/local/bin, do "chmod 755 <scriptname>
on it.
and run the programm you like with:
<scriptname> <application>.
in my case:
rwc /home/<me>/ufoai/ufo
Hope this helps someone with the same problem.
2nd solution would be to shut down compiz compleatly, but i like my desktop-effects ^^

Code: [Select]
#!/bin/sh
#
# Shell script to run programs that have problems with Compiz Fusion.
# This script will temporarily disable Desktop Effects,
# and re-enable it after the program closes.
#

# Check for arguments
if [ -z $1 ]; then
echo "No command-line specified."
exit 1
fi

if [ -z $DISPLAY ]; then
echo "Display not defined."
exit 1
fi

# Disable CF.
DISPLAY=$DISPLAY metacity --replace &

# This should be enough time
sleep 3

# Notify the user.
notify-send --expire-time=5000 --icon=gtk-info "Desktop Effects" \
"Desktop Effects has been disabled temporarily due to an incompatible \
application. This will be restored after the program is closed."

# Run the program
$1

# Re-enable CF
DISPLAY=$DISPLAY compiz --replace &

Offline mattheus

  • Rookie
  • ***
  • Posts: 59
    • View Profile
Re: flickering screen (compitz-videocarddriver conflict) [SOLVED]
« Reply #2 on: December 04, 2008, 12:07:08 am »
Thanks! It still works.

Or anyone has better solution?

(Using Compiz on Ubuntu 8.10, Ati drivers)

zenetik

  • Guest
Re: flickering screen (compitz-videocarddriver conflict) [SOLVED]
« Reply #3 on: January 23, 2009, 04:20:09 pm »
I have the exact same problem, but I'm not running Compiz. I'm running KDE4 under Kubuntu 8.10. I also have problems in which the textures white out after a few minutes of gameplay. I'm using an ATI Radeon 9000 (RV250) video card.

I'm attaching a screen shot.

[attachment deleted by admin]

Offline mattheus

  • Rookie
  • ***
  • Posts: 59
    • View Profile
Re: flickering screen (compitz-videocarddriver conflict) [SOLVED]
« Reply #4 on: January 30, 2009, 07:36:07 pm »
Sure - KDE 4.2 uses KWin - similar composing window manager like Compiz. So - questions are still up? Are there any better solution against flickering on composing window managers? Are there solution for KDE?