Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. <Evilb00n> irssi has no GUI
  2. <Evilb00n> otherwise I'd use that
  3. <baldurk> irssi is actually rendered in opengl with sprites but the sprites just happen to be text characters only
  4. <Evilb00n> what
  5. <Evilb00n> I had to use PuTTy to even start irssi
  6. <baldurk> yeh irssi has a plugin that OCRs the screen and pipes it over ssh
  7. <baldurk> but the real client is rendered in opengl for performance reasons
  8. <Evilb00n> I see
  9. <baldurk> it's just too inefficient to use only text
  10. <Evilb00n> how is using graphics more efficent?$
  11. <Evilb00n> isn't that just wasted processing power?
  12. <baldurk> it can blit straight to the gpu instead of going through the OS font layer
  13. <Evilb00n> ah
  14. <Evilb00n> so unless there's specifically a way to bypass the OS, it's less efficent to use pure text
  15. <Evilb00n> right?
  16. <baldurk> exactly, but OSes have built in protections against that
  17. <Evilb00n> why would you protect against something as inane as that?
  18. <baldurk> the OS font layer is usually done at ring 0
  19. <baldurk> so it's all embedded in the security subsystem
  20. <baldurk> that's partly why font rendering is so slow because it goes through so many additional security checks
  21. <Evilb00n> wow, and they haven't thought of a way to let other programs use their own font?
  22. <baldurk> no you can use your own font but you've got to upload it through the font subsystem
  23. <Evilb00n> I mean without the whole security check thing
  24. <baldurk> so that's why it's slow, and sprite rendering over the GPU and doing the font yourself is fast for things that need it ie. irc clients
  25. <baldurk> no the security checks just prevent unauthorised access
  26. <Evilb00n> hh, so irssi works a lot like SNES games did when using text
  27. <baldurk> programs can still use their own fonts
  28. <baldurk> kind of yeh, same principle
  29. <baldurk> but back then they did it because the hardware just was slow, now it's to get around the red-font-tape
  30. <Evilb00n> what exactly could you access with just plain text?
  31. <baldurk> it's not that the font is inherently a security risk it's just that it has to be done at a low-level, so it has to go into the secure group of OS functions
  32. <Evilb00n> and there's no other way of doing it?
  33. <baldurk> nope
  34. <Evilb00n> that sucks
  35. <baldurk> yeh it does
  36. <Evilb00n> can't they make two seperate font groups
  37. <TrinTragula> and its not really all you need to make it through the font is inherently a security consultant for the two (mod edit)s
  38. <Evilb00n> like one for just the OS
  39. <GokuToku420> bad idea
  40. <Evilb00n> and another one that's for everything else
  41. <baldurk> yeh that wouldn't be good at all
  42. <Evilb00n> why?
  43. <baldurk> for one you've got the risk that people could figure out the 'insecure' font rendering code and use it as an attack vector for the real OS
  44. <baldurk> there was a bug like this in adobe pdf reader
  45. <Evilb00n> so there's no way to render any kind of text without the OS having to help?
  46. <Evilb00n> barring console only OS of course
  47. <baldurk> well like I said you can do it manually via sprites
  48. <baldurk> that's the most common technique really
  49. <lithuanian_dad> shouldn't you know this stuff, b00n? aren't you studying something it-related?
  50. <Evilb00n> I finished an apprenticeship, yes
  51. <baldurk> but it means you don't get many bonuses related to OS fonts so it's usually used by programs where performance is the 100% top priority
  52. <Evilb00n> but I specialized in network security
  53. <baldurk> like irc apps etc
  54. <lithuanian_dad> oh
  55. <baldurk> other programs like word or whatever take the performance hit
  56. <Evilb00n> heh, so word would be faster if it used sprites instead of fonts
  57. <Evilb00n> that's rather ironic
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement