哪个浏览器渲染器?
我实际上正在做一个小浏览器,它应该能够解析一些代码,显示 GUI(主要基于 svg 元素)并让用户与其交互。
我应该使用哪个渲染器来绘制 GUI?
也许将来这个浏览器将需要 3D 功能 - 或者至少需要一个 3D 小部件。 因此,我正在考虑使用像 GLUT 这样的东西(这不是有偿工作,时间也不是限制),但我有点担心无 GPU 机器上的性能。
我的意思是,在没有 GPU 的机器上扩展一些简单的基于 2d GLUT 的代码效果如何?它会像基于 cairo 等其他东西的代码一样运行吗?
我试图让这个项目尽可能轻松,并且使用像 QT 这样的东西(对于这个任务来说是完美的)并不是我很满意的。
I'm actually doing a little browser which should be able to parse some code, display a GUI (mainly based on svg elements) and let the user interact with it.
Which renderer should I use to paint the GUI?
Probably in the future this browser will need 3D capabilities - or, at least, a 3D widget.
Because of this I was thinking of using something like GLUT (this is not paid work and time is not a limit) but I'm a bit scared about performance on gpuless machines.
I mean, how well would scale some simple 2d GLUT-based code on a machine without a gpu? Will it run as well as code based on something else like cairo?
I'm trying to keep this project as light as possible and using something like QT (which would be perfect for this task) is not something I'm very happy with.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您同时需要性能和功能,请使用 GL 进行位图/矢量图形渲染,并使用 freetype 进行文本光栅化。 http://www.freetype.org/ 但是你有很多东西应该实现。
忘记软件(无 GPU)渲染,直到常规 CPU 拥有数百个核心。目前没有无 GPU 渲染在 3D 中具有可接受的性能。 Adobe Flash 证明了这一点。 (最后它也附带了基于 GPU 的渲染:)所有现代 GUI 框架都使用 GPU 或为 GPU 设计。非 GPU 模式只是兼容性的最后一个选项,并非最佳选择。
If you need both of performance and feature use GL for bitmap/vector graphic rendering with freetype for text rasterization. http://www.freetype.org/ However you have a lot of thing should be implemented.
And forget about software (GPU-less) rendering until regular CPU have hundreds of cores. Currenty NO GPU-less rendering has acceptable performance in 3D. There is Adobe Flash which proves this. (finally it's shipping with GPU based rendering too :) All of modern GUI frameworks use GPU or designed for GPU. Non-GPU modes is just a last option for compatibility which are not optimal.
不要使用过剩!这是一个非常简单的框架,有很多限制。如果您想使用 OpenGL,则不会被迫使用 GLUT。
Don't use GLUT! It's a very simplicistic framework with a lot of limitations. You're not being forced to use GLUT if you want to use OpenGL.