diff --git a/Graphics/drawPost.cpp b/Graphics/drawPost.cpp index 931a2186a05f52e1ea153c3e4b65ff8c315edaa7..1bbd4faa17db3f3951428487f8721ea003fddafa 100644 --- a/Graphics/drawPost.cpp +++ b/Graphics/drawPost.cpp @@ -273,6 +273,19 @@ static void drawGlyphs(drawContext *ctx, PView *p) Msg::Debug("drawing extra glyphs (this is slow...)"); + // speed-up string drawing with cocoa fltk +#if defined(__APPLE__) && defined(HAVE_64BIT_SIZE_T) +#if (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 3) + if(opt->intervalsType == PViewOptions::Numeric){ + int numStrings = 0; + for(int ent = 0; ent < data->getNumEntities(opt->timeStep); ent++) + numStrings += data->getNumElements(opt->timeStep, ent); + if(gl_texture_pile_height() < numStrings) + gl_texture_pile_height(numStrings); + } +#endif +#endif + double xyz[PVIEW_NMAX][3], val[PVIEW_NMAX][9]; for(int ent = 0; ent < data->getNumEntities(opt->timeStep); ent++){ if(data->skipEntity(opt->timeStep, ent)) continue;