Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6786147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:12:40+00:00 2026-05-26T17:12:40+00:00

I was creating a opengl android application. I was trying to render a opengl

  • 0

I was creating a opengl android application. I was trying to render a opengl object with vertices more than 50,000.

float itemVerts [] = {
// f 231/242/231 132/142/132 131/141/131
0.172233487787643f, -0.0717437751698985f, 0.228589675538813f,
0.176742968653347f, -0.0680393472738536f, 0.2284149434494f,
0.167979223684599f, -0.0670168837233226f, 0.24286384937854f,
// f 131/141/131 230/240/230 231/242/231
0.167979223684599f, -0.0670168837233226f, 0.24286384937854f,
0.166391290343292f, -0.0686544011752973f, 0.241920432968569f,......

and many more…. But when i do this in a function or constructor i get a error while compiling that The code of method () is exceeding the 65535 bytes limit. So I was wondering if there is a different way to do this.

I tried storing the value in file and reading it back. But the IO operation, with string parsing of such huge record is very slow. Takes more than 60 sec. Which is not good.

Please let me know if there is any other way to do this. Thank you for your time and help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:12:41+00:00Added an answer on May 26, 2026 at 5:12 pm

    But when i do this in a function or constructor i get a error while
    compiling that The code of method () is exceeding the 65535 bytes
    limit. So I was wondering if there is a different way to do this.

    Put it outside the constructor (as a class variable or field)? If this doesn’t change, just make it a constant. If it does change, make it a constant anyway and copy it in the constructor.

    I tried storing the value in file and reading it back. But the IO
    operation, with string parsing of such huge record is very slow. Takes
    more than 60 sec. Which is not good.

    If you do decide to keep it in an external file and read it in, don’t read it as a string, just serialize it somehow (Java serialization, Protocol Buffers, etc.).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating an Android app utilising OpenGL ES, and need some help with the
I'm creating an OpenGL application on windows. I can't use GLUT, because I would
I'm creating a drawing application with OpenGL. I'v created an algorithm that generates gradient
I'm creating a drawing application that renders OpenGL when it gets a WM_SCROLL or
Here is my situation. I'm creating a drawing application using OpenGL and WinAPI. My
So I am creating my first opengl es application on the iphone. I want
I'm creating a game engine using wxWidgets and OpenGL. I'm trying to set up
I'm very new to creating games (and working in OpenGL in general). I'm trying
I am creating a simple 2D OpenGL application but I seem to be experiencing
I'm having trouble creating a solid game engine for my OpenGL application. It's a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.