Discussion:
[Crystal-develop] g2dtest progress
Ralph Campbell
2014-01-20 16:02:50 UTC
Permalink
I was trying to find out why the g2dtest LineClipTest() and
BoxClipTest() weren't displaying anything.
When I added a printf() in libs/csplugincommon/opengl/glcommon2d.cpp
DrawLine(), I started to see lines being drawn.
I suspect there is some issue with drawing commands being buffered and
not flushed to the display per frame so that nothing is seen unless
there is a delay.
Perhaps this is enough of a hint to find the problem.
Matthieu Kraus
2014-01-21 07:58:08 UTC
Permalink
Could you try adding the following to the end of
G2DTestSystemDriver::StateFrame:
myG3D->FinishDraw();

It seems that g2dtest only starts the drawing but never signals
iGraphics3D that it's done which can cause some issues and mess up the
page swapping, etc.
Post by Ralph Campbell
I was trying to find out why the g2dtest LineClipTest() and
BoxClipTest() weren't displaying anything.
When I added a printf() in libs/csplugincommon/opengl/glcommon2d.cpp
DrawLine(), I started to see lines being drawn.
I suspect there is some issue with drawing commands being buffered and
not flushed to the display per frame so that nothing is seen unless
there is a delay.
Perhaps this is enough of a hint to find the problem.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Crystal-develop mailing list
https://lists.sourceforge.net/lists/listinfo/crystal-develop
Ralph Campbell
2014-01-21 22:37:03 UTC
Permalink
I checked in the change you suggested.
It didn't seem to make any difference though.
Post by Matthieu Kraus
Could you try adding the following to the end of
myG3D->FinishDraw();
It seems that g2dtest only starts the drawing but never signals
iGraphics3D that it's done which can cause some issues and mess up the
page swapping, etc.
Post by Ralph Campbell
I was trying to find out why the g2dtest LineClipTest() and
BoxClipTest() weren't displaying anything.
When I added a printf() in libs/csplugincommon/opengl/glcommon2d.cpp
DrawLine(), I started to see lines being drawn.
I suspect there is some issue with drawing commands being buffered and
not flushed to the display per frame so that nothing is seen unless
there is a delay.
Perhaps this is enough of a hint to find the problem.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Crystal-develop mailing list
https://lists.sourceforge.net/lists/listinfo/crystal-develop
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Crystal-develop mailing list
https://lists.sourceforge.net/lists/listinfo/crystal-develop
Loading...