Questions tagged [rendering]

23 questions
17
votes
6 answers

Rails - Does using partials slow views rendering?

I'm having performance issues on a Rails 3.1.0 application, now I've done dome changes on my queries with AR and so but views still takes too many time to render, I've divided the views, loops and so, on many partials that are rendered dynamically…
Mr_Nizzle
  • 283
  • 1
  • 2
  • 7
12
votes
1 answer

How does font rendering actually work?

I realize that I know essentially nothing about the way fonts get rendered in my computer. From what I can observe, font rendering is generally made in a consistent way throughout the system. For instance, the subpixel font hinting settings that I…
Andrea
  • 5,355
  • 4
  • 31
  • 36
6
votes
2 answers

How does the Arabic typographic layout system work at a high level?

I have some Arabic content that is justified according to western conventions. I justified it because it is justified in ancient sources: However, the way Arabic text justification works is by stretching the cursive words, instead of the…
Lance
  • 2,537
  • 15
  • 34
6
votes
1 answer

How do browsers paint a render tree to the screen?

I'm interested in building a browser-like rendering engine. I understand a bit about how OpenGL and GUI toolkits work. But how do browsers actually put pixels on the screen? Are they like software rasterizers that scan every line and paint…
Reed G. Law
  • 259
  • 1
  • 6
4
votes
2 answers

Unit testing a software renderer, dealing with coupling due to speed issues

Unit testing is something I love now after forcing myself to do it in projects (and doing it at work) after seeing the massive rewards it offers down the road when refactoring and ensuring things work the way they should. Right now I'm writing a…
Water
  • 356
  • 1
  • 12
3
votes
1 answer

What's the prefer way to construct a personal blog render system, SSR or prerender or anything else?

I am building a personal blog system. The system is more like a platform, means that not only the admin, but all registered users can post their blogs. We've decided that using markdown as the blog's written language, thus we provides a markdown…
3
votes
1 answer

3D Rendering Engine architecture for multipass rendering

I'm implementing a simple 3D rendering engine for my game, I'm using DirectX11. I created a simple architecture for the rendering engine, with a central rendering system (RenderingSystem class, a singleton) that contains and manages specific…
Luca
  • 181
  • 2
  • 7
3
votes
1 answer

How to efficiently render objects in a database?

My application is similar to a very simple CAD program. The user can create and modify a database of several thousand, simple 3D objects (e.g. cubes and spheres). Each object has a position, orientation, and size. I anticipate having these objects…
3
votes
3 answers

How is rendering a Word document different from rendering a website?

Now, it doesn't necessarily have to be Word — for ease of comparison, let's use ODT, which is based on XML — which is pretty similar to HTML. That would, to my mind, make rendering an ODT document almost like rendering an HTML website. With ODT and…
uryga
  • 248
  • 1
  • 6
3
votes
1 answer

Is it possible to use RubyGnome2's/QtRuby's HTML renderers to make UI for a Ruby script?

I'd like to make a graphical user interface for my script, instead of running it from the console. I'm aware there's a wealth of UI libraries for Ruby, but I'm quite familiar with HTML and CSS and I'd like to use them for building an interface. So…
mjr
  • 31
  • 1
2
votes
1 answer

Would one use a 2D Gaming Engine for a desktop application?

I am thinking about a library that I could use for a program to create presentations but I am not sure what one could/should use for a task like that. What first came to my mind are 2D Gaming Engines that could be used for rendering etc. for a…
Stefan Falk
  • 248
  • 3
  • 17
2
votes
1 answer

How and when should I design a simple mark-up language parser?

I want to write a simple markup language with its rendering engine. First, I am not completely sure when I should try this... I am only 12... But I am competent in C++ having learned through the Web and books. I am also good with JavaScript, PHP…
user126162
2
votes
1 answer

Which layer should order the columns shown to the user when using MVC?

Say you want to render a table with five columns, but you want the order of the columns to be different depending on some specific parameter. This would be very easy to accomplish if the model sets the order. The view can then simply use a loop and…
user1323245
  • 461
  • 2
  • 8
1
vote
2 answers

Should an entity know how to render itself or is it renderers job to figure out how to draw an Entity?

If I have a graph which consists of nodes like this: class Graph { public: ... int32_t width(); int32_t height(); const Node * getNode(int32_t height, int32_t width); private: …
a a
  • 261
  • 1
  • 7
1
vote
1 answer

Server side rendering of third party updated html components

Say I am wanting to include a third party HTML component in my site... I know that I can simply include a