桌面是否有最大的libGDX纹理大小? [英] Is there a max libGDX texture size for desktop?

查看:82
本文介绍了桌面是否有最大的libGDX纹理大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道在移动设备上,一次绘制中可以渲染的最大纹理有所不同:有时只有1024x1024-有时是2048x2048等.

I know that on mobile devices, the largest texture you could render in a single draw differs: sometimes it is a mere 1024x1024 - other times 2048x2048 etc.

台式机游戏是什么情况?我正在使用OpenGL 2.0.

What is the case for Desktop games? I am using OpenGL 2.0.

我打算绘制一个可能高达5000x5000的单个背景精灵.我猜测TexturePacker在这种情况下不是很有用,因为我真的不需要图集,因为我只是想制作一个精灵.

I intend to draw one single background sprite that could be as big as 5000x5000. I am guessing that TexturePacker is not quite useful in this scenario, because I don't really need an atlas since I'm just trying to make a single sprite.

是的,我刚刚测试了5000x5000,效果很好.只是想知道是否有实际的限制要考虑.也许一台计算机与另一台计算机不同?

Yes, I just tested for 5000x5000 and it works just fine. Just wondering if there's an actual limit to consider. Maybe it differs from one computer to another?

推荐答案

最大纹理大小是OpenGL的功能,它将大小留给视频卡的设备驱动程序(在范围内).

The maximum texture size is a function of OpenGL, which leaves the size to the video card's device driver (within bounds).

您可以在运行时查看报告的限制(尽管请参阅对于某些警告,请与GL_MAX_TEXTURE_SIZE 混淆).

You can check at run-time to see what the reported limits are (though see Confusion with GL_MAX_TEXTURE_SIZE for some caveats).

要了解实践中各种硬件报告,有一些站点收集用户的结果数据库(主要与基准性能有关),这些站点通常还收集最大纹理大小之类的数据. (例如,gfxbench.com或 http://opengl.gpuinfo.org/gl_stats_caps_sing. php?listreportsbycap = GL_MAX_TEXTURE_SIZE )

To find out what a variety of hardware reports in practice, there are some sites that collect databases of results from users (mostly concerned with benchmark performance), that often also collect data like max texture size. (E.g., gfxbench.com, or http://opengl.gpuinfo.org/gl_stats_caps_single.php?listreportsbycap=GL_MAX_TEXTURE_SIZE)

我认为在现代台式机上使用5000x5000的GPU会大大低于支持的限制.

I think on a modern desktop GPU 5000x5000 will be well under the supported limit.

这篇关于桌面是否有最大的libGDX纹理大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆