[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23559] trunk/blender: Sorry, three commits in one, became difficult to untangle..

Diego B bdiego at gmail.com
Fri Oct 2 16:47:59 CEST 2009


On Thu, Oct 1, 2009 at 8:51 AM, Brecht Van Lommel <brecht at blender.org> wrote:
> Hi,
>
> On Thu, Oct 1, 2009 at 7:38 AM, Matt Ebb <matt at mke3.net> wrote:
>> On Wed, Sep 30, 2009 at 5:12 AM, Brecht Van Lommel <brecht at blender.org> wrote:
>>> Revision: 23559
>>>          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23559
>>> Author:   blendix
>>> Date:     2009-09-29 21:12:12 +0200 (Tue, 29 Sep 2009)
>>
>>> * On systems with support for non-power of two textures, an OpenGL texture
>>>  is now used instead of glDrawPixels. This avoids problems with icons get
>>>  clipped on region borders. On my Linux desktop, this gives an 1.1x speedup,
>>>  and on my Mac laptop a 2.3x speedup overall in redrawing the full window,
>>>  with the default setup. The glDrawPixels implementation on Mac seems to
>>>  have a lot of overhread.
>>
>> Hi Brecht, I just realised on Win64 here (nvidia card) I now get
>> blurry icons in the outliner. Most other icons (in headers etc) seem
>> to be ok.
>>
>> http://mke3.net/blender/devel/2.5/outliner_blurry_icons.png
>>
>> Anything I can do to help debug?
>
> I don't know why it happens, I would expect the offset in
> UI_view2d_view_ortho to take care of this. But blenfont seems to
> manage to render non-blurry somehow. It has a trick in BLF_position to

That is Ton trick (I think), it's for pixmap alignment with pixel, the
old ui_rasterpos_safe.

> do an offset, but that code doesn't seem like it's relevant because
> the remainder is never in that range. I've attached a patch with a
> stupid extra offset for icons, maybe it helps. A bigger offset like
> 0.5 may also fix it, but that gives exactly the blurry results you get
> on my computer. Tweaking the offset in UI_view2d_view_ortho may also
> help.
>
> Another possibility is to remove sizey += V2D_SCROLL_HEIGHT or add
> sizex += V2D_SCROLL_WIDTH; in draw_outliner. There has to be something
> the outliner does different, maybe this is it.
>
> Brecht.
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>
>


More information about the Bf-committers mailing list