Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

ios metal rendering issue in 4.13

I see that the shader pre-warming system has been accomplished in 4.13 like the screenshot below.However,I still encounter obvious stuck when the material gets first rendered,eg.when spawning a particle at runtime(for the first render),the game will get stuck for a while(maybe 1s or 2s). And when I dig into the runtime log in mobile devices,and I still find the lines saying:

LogMetal:Display: Loaded a non-offline compiled shader (will be slower to load)

Am I missing something to set?I have packaged the game with PC with metal enabled,and Have tested on iphone6 and iPhone 6s.Both have this issue.

Thanks! alt text

Product Version: UE 4.13
草图.png (70.1 kB)
more ▼

asked Sep 03 '16 at 12:21 PM in Bug Reports

avatar image

396 63 80 106

avatar image FacePalm.exe Sep 05 '16 at 12:07 AM

Are you packaging on PC or mac?

The caching of shaders for metal only works for OSX builds. (unless this fix is supposed to be for windows builds, as most shaders were already being cached pre-4.13)

avatar image AndrewHurley Sep 06 '16 at 04:04 PM

Hey hls333555,

Can you provide me with the steps you took when setting up your project along with the settings you enabled/disabled specifically for the Shader Caching?

Since it is newly implemented the documentation is a bit light, but I see we actually removed shader caching by default on Macs. Disabled the Shader Cache by default on Mac to match other platforms as it was not designed to support the new RHI Thread & Parallel Execution features of Unreal Engine 4.

Let me know if you have further questions or need additional assistance.


Andrew Hurley

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

So I looped in some additional eyes on this issue for clarification and we actually have some overlapping information within our documentation that could be confusing. I am entering some tickets to have these features and workflows clarified.

4.13 does have a new system for Android OpenGL ES which lets the device save the shaders it compiles to the device the first time you run. So you'll get slow loading and hitches the very first time, but not on subsequent runs.

If you're using Metal on iOS, it should be possible to compile the shaders on a Mac during cooking which should completely remove the hitches. You will need to compile your shaders on a Mac in order for the shader caching to work for iOS Metal.

Let me know if you have further questions or need additional assistance.


Andrew Hurley

more ▼

answered Sep 07 '16 at 05:05 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question