在 ChromeOS 中调整游戏
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
若要针对 ChromeOS 调整 Android 游戏,您需要从不同的角度看待自己的游戏。大屏设备和窗口化环境为您创造机会,同时为用户承担责任。专为带触摸屏的小屏移动设备设计的游戏必须经过增强,才能在 ChromeOS 上运行良好。如果您想让 ChromeOS 游戏取得成功,就需要支持键盘、鼠标、触控板和游戏手柄。
性能分析和调整有助于您在整个 Android 生态系统中搭配使用这些组件。为了帮助您顺利上手,下面列出了一些代码段、文档指针,以及针对 ChromeOS 的提示和技巧:
- 输入支持涵盖键盘、鼠标、游戏控制器、聊天和触控笔输入处理。
- 大屏设备和外接显示屏包含有关窗口管理的信息。
- 优化显示屏大小 - 介绍了如何确定用于渲染的显示屏分辨率。
- 发布注意事项介绍了 x86/ARM 支持,包括正确打包 32 位和 64 位支持以实现高性能。
- 多人游戏网络涵盖对多人游戏的网络支持。
- 性能分析说明了如何分析和查找游戏中的性能瓶颈。
- 游戏引擎提供了有关使用最常用游戏引擎 Unity 的资源和提示。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Adapt games on ChromeOS\n\nAdapting Android games for ChromeOS requires you to think about your game\ndifferently. Large screens and a windowed environment bring both opportunities\nfor you and responsibilities toward the user. Games designed for small-screen\nmobile devices with touch screens must be enhanced to run well on ChromeOS.\nKeyboard, mouse, trackpad, and gamepad support are all needed if you want your\nChromeOS game to succeed.\n\nProfiling and tuning can help you get these components working together\nacross the Android ecosystem. Here are some code snippets, pointers to\ndocumentation, and ChromeOS-specific tips and tricks to help you get started:\n\n- [Input support](https://chromeos.dev/en/games/optimizing-games-inputs) covers keyboard, mouse, game controller, chat, and stylus input handling.\n- [Large screens and external displays](https://chromeos.dev/en/games/optimizing-games-windowing) has information about window management.\n- [Optimizing display size](https://chromeos.dev/en/games/optimizing-games-display) explains how to determine display resolution for rendering.\n- [Publishing considerations](https://chromeos.dev/en/games/optimizing-games-publishing) discusses x86/ARM support, including properly packaging 32- and 64-bit support to achieve high performance.\n- [Multiplayer networking](https://chromeos.dev/en/games/optimizing-games-networking) covers network support for multiplayer games.\n- [Performance profiling](https://chromeos.dev/en/games/optimizing-games-profiling) explains how to profile and find performance bottlenecks in your game.\n- [Game engines](https://chromeos.dev/en/games/optimizing-games-engines) offers resources and tips for using the most common game engine, Unity."]]