ocvm icon indicating copy to clipboard operation
ocvm copied to clipboard

slow gpu emulation

Open Nebdir opened this issue 6 years ago • 2 comments
trafficstars

If i try to install the GUI Lib the installation hangs and uses 100% of one core.

no error is thrown, might be relatet to emulation of OCEmu as the install works there after a few secs but drawing is much slower than an installtion in minecraft. got about 3 fps

Nebdir avatar Mar 28 '19 08:03 Nebdir

I've never used that gui lib. it is probably an easy setup, but can you give me a very specific repro (even with ocvm params you use to start it, starting from a brand new vm) steps you take to copy the lib files, and start the os, just all the steps :) I don't want to spend time figuring out their lib nor doing something differently

payonel avatar Mar 28 '19 16:03 payonel

  • create new vm
  • boot openos
  • run "pastebin run ryhyXUKZ"
  • installer installs everything (which already shows an slow rendering)
  • create example.lua:(from menu example of GUILIB)
local GUI = require("GUI") 
-------------------------------------------------------------------------------- 
local application = GUI.application() 
application:addChild(GUI.panel(1, 1, application.width, application.height, 0x2D2D2D)) 
-- Add menu object to application 
local menu = application:addChild(GUI.menu(1, 1, application.width, 0xEEEEEE, 0x666666, 0x3366CC, 0xFFFFFF)) 
-- Add first item with black color. Attack a callback-function to it
menu:addItem("MineCode IDE", 0x0).onTouch = function()
GUI.alert("Hello world!") 
end 
-- Add context menu and few items to it 
local contextMenu = menu:addContextMenu("File") 
contextMenu:addItem("New") 
contextMenu:addItem("Open").onTouch = function() 	
GUI.alert("Open item was pressed") 
end 
contextMenu:addSeparator() 
contextMenu:addItem("Save") 
contextMenu:addItem("Save as") 
-- Add whatever you want 
menu:addItem("Edit") 
menu:addItem("View") 
menu:addItem("About") -------------------------------------------------------------------------------- 
application:draw(true) 
application:start()

Nebdir avatar Apr 04 '19 08:04 Nebdir