[Qt-interest] Screen flicker using -graphicssystem opengl
Malcolm Sequeira
mal.seq at gmail.com
Wed May 20 15:50:53 CEST 2009
Hi,
Will there be any updates to this feature in the near future.
(like in the next release or the release after that )
BTW, i am deploying the software on an embedded system having VIA Nehemiah
800MHz processor,
GPU : DeltaChrome S4 Pro having 128 Mbytes of GDDR SDRAM.
Also,
I have provided some extracted snippets of code below.
Following that is the output of the glxinfo command
//constructor code
MyWidget::MyWidget(QWidget *parent):QWidget(parent){
scene = new QGraphicsScene();
view = new QGraphicsView(scene, this);
container = new QGraphicsItemGroup();
for(int i=1;i<30; i++){
QString *str = new
QString(QString("jpgs_256/img")+QString::number(i,10)+QString(".jpg"));
MenuItem *mi = new WOIMenuItem(str, str);
mi->setPos(200+(i-1)*410, 500);
container->addToGroup(mi);
}
scene->addItem(container);
}
//end of constructor code
void MyWidget::setPosition(int a){
QTransform t1;
container->setTransform(t1.translate(a,0),false);
}
void MyWidget::keyPressEvent(QKeyEvent *event){
std::cout<<"keyPressEvent"<<std::endl;
if(event->key() == Qt::Key_Right){
QtPropertyAnimation *animation = new
QtPropertyAnimation(this,"pos");
animation->setDuration(500);
animation->setStartValue(pos);
animation->setEndValue(pos+410);
QtEasingCurve curve = QtEasingCurve::OutBounce;
curve.setAmplitude(2.0);
animation->setEasingCurve(curve);
animation->start();
pos+=410;
}else if(event->key() == Qt::Key_Left){
QtPropertyAnimation *animation = new
QtPropertyAnimation(this,"pos");
animation->setDuration(500);
animation->setStartValue(pos);
animation->setEndValue(pos-410);
QtEasingCurve curve = QtEasingCurve::OutBounce;
curve.setAmplitude(2.0);
animation->setEasingCurve(curve);
animation->start();
pos-=410;
}
}
[172.17.152.56: ~]# glxinfo
name of display: :0.0
libGL warning: 3D driver claims to not support visual 0x23
libGL warning: 3D driver claims to not support visual 0x24
libGL warning: 3D driver claims to not support visual 0x25
cxmesa = 8053678
hHWContext = 2
CX700_DiscardDMA
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
GLX_SGIS_multisample, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier,
GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control,
GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method,
GLX_SGIS_multisample, GLX_SGIX_fbconfig
OpenGL vendor string: Max Lingua
OpenGL renderer string: Unichrome Pro II
OpenGL version string: 1.2 Mesa 6.4.1
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
GL_ARB_point_parameters, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_mirrored_repeat,
GL_ARB_transpose_matrix, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra,
GL_EXT_blend_color, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
GL_EXT_clip_volume_hint, GL_EXT_compiled_vertex_array,
GL_EXT_convolution,
GL_EXT_copy_texture, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
GL_EXT_histogram, GL_EXT_packed_pixels, GL_EXT_point_parameters,
GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_stencil_wrap, GL_EXT_subtexture,
GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_vertex_array,
GL_APPLE_packed_pixels, GL_IBM_rasterpos_clip,
GL_IBM_texture_mirrored_repeat, GL_MESA_window_pos, GL_NV_blend_square,
GL_NV_light_max_exponent, GL_NV_texgen_reflection, GL_OES_read_format,
GL_SGI_color_matrix, GL_SGI_color_table, GL_SGIS_texture_edge_clamp,
GL_SGIS_texture_lod
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
dma max usage = 20
visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x22 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x23 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 None
0x24 16 tc 0 24 0 r y . 5 6 5 8 0 16 8 16 16 16 16 0 0 None
0x25 16 tc 0 24 0 r . . 5 6 5 8 0 16 8 16 16 16 16 0 0 None
[172.17.152.56: ~]#
On Wed, May 20, 2009 at 1:07 PM, Alexis Ménard
<alexis.menard at trolltech.com>wrote:
> On Wednesday 20 May 2009 06:57:03 Karol Krizka wrote:
> > On Wed, 2009-05-20 at 01:00 +0530, Malcolm Sequeira wrote:
> > > Hi,
> > >
> > > I am developing a software, that has a lot of animations.
> > > For this I use a QGraphicsScene to display all the QGraphicsItems.
> > > Most of the animations are only moving the QGraphicsItems around the
> > > screen.
> > >
> > > This software is deployed on an embeded linux system.
> > > Using native rendering the animations do not appear as smooth, as
> > > compared to using '-graphicssystem opengl.'
> > >
> > > However the problem with the using '-graphicssystem opengl' is, it
> > > causes the screen to flicker a lot.
> >
> > I've run into the same problem a while ago on both Windows and Linux, so
> > this problem is not restricted to embeded systems only. I've reported
> > the problem on this list a while ago, but I'm yet to receive a reply. So
> > if you find a solution, let me know.
> >
>
>
> -graphicssystem opengl is an experimental feature, those issues might be
> because of that. If you have a simple test that would be nice.
>
>
> > --
> > Cheers,
> > Karol Krizka
> > http://www.krizka.net
> >
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> --
>
> Alexis Ménard
> Software Engineer, Widgets Team 1
> Qt Software, Nokia Norge AS, Sandakerveien 116, 0484 Oslo, Norway
>
--
M.A.L.C.O.L.M.
S.A.V.I.O.
S.E.Q.U.E.I.R.A.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090520/48ee2bf0/attachment.html
More information about the Qt-interest-old
mailing list