Discussion:
d2d and Scintilla
(too old to reply)
g***@gmail.com
2014-08-03 14:23:52 UTC
Permalink
Hi Everyone

I'm aware there may be a drawing problem using Scintilla in certain
situations.

I wanted to share this observation in case it wasn't already known and
might be helpful to anyone looking into this problem.

When running BowPad which uses Scintilla, I find that if I set BP's setting
option of d2d=1, BP renders strangely when using my laptops Nvidia gt540m
graphics card using the latest Optimus enabled Nvidia drivers.
But BP renders fine when using the built-in Intel HD 3000 driver.

I found that if I start Visual Studio by right clicking and choosing the
"Run using High Performance graphics" option, then open BowPads Visual
Studio project solution, and then run it. It seems VS will pass the
graphics option onto BP and BP will execute also using the card and I can
see the re-create the painting problems every time.

Hopefully this might enable someone familiar Scintilla and/or BP to find
the problem since the drawing problem is then repeatable every time (at
least for me).

The problem seems like it might be connected to a few issues, any one or
none might be true, but things that look interesting are the corrupted
painting is in synch with the cursor blink rate. Also it could be that the
use of GDI and D2D together, I don't know.

But being able to at least recreate the problem every times by starting VS
and therefore BP in high speed graphics mode to show the corruption
consistently seems like it might be a helpful tip to someone. Sorry if this
fact is already known and not useful. I'm told the problem exists with
other products, not just BP, but if you do use BP to test, remember that
the %appdata%\bowpad\settings.ini file needs this section in it:

[view]
d2d=1

and the problem only occursfor me on an NVIDIA graphics card, in my case a
GT540M one.

Thanks
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Neil Hodgson
2014-08-03 22:31:35 UTC
Permalink
When running BowPad which uses Scintilla, I find that if I set BP's setting option of d2d=1, BP renders strangely when using my laptops Nvidia gt540m graphics card using the latest Optimus enabled Nvidia drivers.
But BP renders fine when using the built-in Intel HD 3000 driver.
I only have machines with a single graphics card and this doesn't occur on a NVIDIA GTX 460. This may help others with dual cards explore the problem.
The problem seems like it might be connected to a few issues, any one or none might be true, but things that look interesting are the corrupted painting is in synch with the cursor blink rate. Also it could be that the use of GDI and D2D together, I don't know.
One difference between BowPad and other applications using Scintilla is a custom scroll bar. Its possible this is rendered by GDI while the text is by D2D.

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
g***@gmail.com
2014-08-04 07:27:40 UTC
Permalink
Hi
Post by g***@gmail.com
When running BowPad which uses Scintilla, I find that if I set BP's
setting option of d2d=1, BP renders strangely when using my laptops Nvidia
gt540m graphics card using the latest Optimus enabled Nvidia drivers.
Post by g***@gmail.com
But BP renders fine when using the built-in Intel HD 3000 driver.
I only have machines with a single graphics card and this doesn’t occur
on a NVIDIA GTX 460. This may help others with dual cards explore the
problem.
Post by g***@gmail.com
The problem seems like it might be connected to a few issues, any one or
none might be true, but things that look interesting are the corrupted
painting is in synch with the cursor blink rate. Also it could be that the
use of GDI and D2D together, I don't know.
One difference between BowPad and other applications using Scintilla is
a custom scroll bar. Its possible this is rendered by GDI while the text is
by D2D.
Neil
Thanks Neil. I'll continue to look at the problem more as I get time.
Thanks for replying.
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Loading...