Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0

Persist resolution between gpu binds



I am writing an ticket system for Railcraft, and I've wrote some libraries to split my code into different files. But I have a problem that, because I am using multiple screens I need to rebind my GPU, but that causes them to reset to their default resolution. Is there a way to persist it? (To have them keep their resolution instead of reseting on every gpu.bind()?)

MC 1.7.10




Much thanks

Share this post

Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

No, that basically does the same thing. I've written a lib that did setResolution on every bind but that resulted in an awful flicker, because the image has been rendering in native resolution for half a second and then went to set one

Share this post

Link to post
Share on other sites
  • 0

Perhaps gpu.bind(address, false) does what need. Otherwise it might be an option to let just one library handle the graphics stuff if I understand your problem corretly.

Share this post

Link to post
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.

Answer this question...

×   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.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.