Jump to content




Flickering... only on regular computers


  • You cannot reply to this topic
5 replies to this topic

#1 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 20 August 2015 - 11:53 PM

My latest program is compatible with Regular and Advanced computers.


Advanced computers work great, with very rare flickering

Regular computers have terrible flickering.


Is there some API on advanced computers that's optimizing draw calls or something?
Or is it more likely that I screwed up a bit of code that only runs on regular computers?

Program:
http://pastebin.com/JuNHQRZD
Controls:
Up / down arrow keys to change the selected item
Ctrl+up to move up a directory
Enter to open a folder or run a program
MOUSE SUPPORT IS WIP. Mostly not implemented yet.
Other keys can be found in the code, if you are so inclined.

NOTE: I'm using CCEmuRedux, which uses CC 1.74 at the moment
Haven't tested in MC yet

Edited by HPWebcamAble, 21 August 2015 - 12:12 AM.


#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 21 August 2015 - 12:03 AM

We can't provide any useful suggestions without seeing the code.

#3 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 21 August 2015 - 12:09 AM

View PostLyqyd, on 21 August 2015 - 12:03 AM, said:

We can't provide any useful suggestions without seeing the code.

Forgot to mention that the code is a little long at this point.
I was mostly wondering if there were any rendering differences between Advanced / normal computers.

But if someone figures out the problem, that would make me happy too
(Added pastebin to post)

Edited by HPWebcamAble, 21 August 2015 - 12:11 AM.


#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 21 August 2015 - 12:16 AM

Well, the biggest difference is that the advanced computers all have multishell, which means everything you draw is going through the window API. That shouldn't cause there to be fewer issues, though, as it's not particularly tuned for performance/smoothness. Do you experience more flickering if you redirect to term.native() before running the program on an advanced computer?

#5 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 21 August 2015 - 12:26 AM

View PostLyqyd, on 21 August 2015 - 12:16 AM, said:

Do you experience more flickering if you redirect to term.native() before running the program on an advanced computer?

No, if anything it helps a bit on the advanced computer.
Doesn't affect the regular computer, as one might expect

#6 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 21 August 2015 - 05:20 AM

UPDATE

Tested in MC (DW20 Pack 1.7.10, CC 1.74)

Minimal flickering in both advanced and regular computers
Must be CCEmu





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users