Jump to content

Force render at @4x?


Ninjadoodle
 Share

Recommended Posts

Hi guys

 

I'm trying to show my game through an iFrame (on my website) and everything works fine, apart from one thing.

 

Since, the website is mainly for use on a pc, I would like to load the game at max @4x.

 

The problem is that my iFrame is only 640x480, and the game renders at lower resolution.

 

Is there a way I can get @4x through a smaller iFrame?

 

Thank you heaps in advance!

Link to comment
Share on other sites

Hi @enpu

 

Thank you for looking into this :)

 

I've noticed that if you load the game in a small window, the engine uses the windows size to work out whether it should use @2x, @4x etc assets.

 

I was wondering whether it would be possible to have the engine use the maximum display size (as in the resolution of the machine you're on), this way it would always load hi-res assets on desktops and appropriate assets on mobiles?

 

Is this something that would work?

 

Thank you again!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...